Skip to content

Commit

Permalink
[run_worker.sh] Don't prefetch more messages
Browse files Browse the repository at this point in the history
Fixes #375
  • Loading branch information
jpopelka committed Jan 29, 2020
1 parent d49601e commit 5d199cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion files/run_worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ install -m 0400 /packit-ssh/config .
grep -q pkgs.fedoraproject.org known_hosts || ssh-keyscan pkgs.fedoraproject.org >>known_hosts
popd

exec celery worker --app="${APP}" --loglevel=${LOGLEVEL} --concurrency=1
# concurrency: Number of concurrent worker processes/threads/green threads executing tasks.
# prefetch-multiplier: How many messages to prefetch at a time multiplied by the number of concurrent processes.
# http://docs.celeryproject.org/en/latest/userguide/optimizing.html#prefetch-limits
exec celery worker --app="${APP}" --loglevel=${LOGLEVEL} --concurrency=1 --prefetch-multiplier=1

0 comments on commit 5d199cf

Please sign in to comment.