Skip to content

Commit

Permalink
Add threading configuration for dramatiq worker (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
moisses89 authored Jan 8, 2025
1 parent 73e13c4 commit c5cc1c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/web/dramatiq/worker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

set -euo pipefail

dramatiq app.workers.tasks & # dramatiq async actors
TASK_CONCURRENCY=${TASK_CONCURRENCY:-100}

echo "==> $(date +%H:%M:%S) ==> Running Dramatiq worker with concurrency $TASK_CONCURRENCY <=="
dramatiq app.workers.tasks --processes 1 --threads $TASK_CONCURRENCY & # dramatiq async actors
periodiq -v app.workers.tasks & # cron dramatiq async actors

wait

0 comments on commit c5cc1c0

Please sign in to comment.