-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #362 from maykinmedia/upgrade-42
Prepare upgrade to Django 4.2
- Loading branch information
Showing
35 changed files
with
659 additions
and
341 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
LOGLEVEL=${CELERY_LOGLEVEL:-INFO} | ||
CONCURRENCY=${CELERY_WORKER_CONCURRENCY:-1} | ||
|
||
QUEUE=${1:-${CELERY_WORKER_QUEUE:=celery}} | ||
WORKER_NAME=${2:-${CELERY_WORKER_NAME:="${QUEUE}"@%n}} | ||
|
||
_binary=$(which celery) | ||
|
||
if [[ "$ENABLE_COVERAGE" ]]; then | ||
_binary="coverage run $_binary" | ||
fi | ||
|
||
echo "Starting celery worker $WORKER_NAME with queue $QUEUE" | ||
exec $_binary --workdir src --app objects.celery worker \ | ||
-Q $QUEUE \ | ||
-n $WORKER_NAME \ | ||
-l $LOGLEVEL \ | ||
-O fair \ | ||
-c $CONCURRENCY |
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
Oops, something went wrong.