-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly delete stale workers with no job (#37)
* Properly delete stale workers with no job * Only stop the proper worker * Allow for jobs with no payloads * Fix race condition in test * Properly shutdown node in test
- Loading branch information
Showing
6 changed files
with
139 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
# Get the root directory of the git repository | ||
GIT_ROOT=$(git rev-parse --show-toplevel) | ||
|
||
# Change to the git root directory | ||
pushd "${GIT_ROOT}" | ||
|
||
# Source common utilities and environment variables | ||
# shellcheck source=utils/common.sh | ||
source ./scripts/utils/common.sh | ||
source .env | ||
|
||
# Stop the Redis Docker container | ||
docker compose -p redis -f docker-compose/docker-compose-redis.yaml down | ||
|
||
# Return to the original directory | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters