-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement multiple task queues (#813)
* Implement multiple queues for background tasks * fixes * fixes * fix get_pending_tasks docstring paste-o * cleanup mcweb/backend/sources/tasks.py: restore docstring mcweb/backend/util/tasks.py: define SYSTEM_SLOW as 'system-slow' --------- Authored-by: Phil Budne <[email protected]>
- Loading branch information
Showing
6 changed files
with
192 additions
and
122 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
# if you add new lines to this file, add them to the ps:scale command in dokku-scripts/push.sh! | ||
web: bin/start-pgbouncer gunicorn --timeout 500 --pythonpath mcweb --bind 0.0.0.0:$PORT mcweb.wsgi | ||
# can run multiple queues/workers w/ --queue "name": | ||
worker: python mcweb/manage.py process_tasks | ||
# | ||
# workers for queues defined in mcweb/backend/util/task_queues.py: | ||
# NOTE! names must end in "worker" for dokku-scripts/push.sh!!! | ||
# | ||
# painful to delete old "procs", so "worker" runs system-slow queue | ||
worker: python mcweb/manage.py process_tasks --queue system-slow | ||
system-fast-worker: python mcweb/manage.py process_tasks --queue system-fast | ||
admin-slow-worker: python mcweb/manage.py process_tasks --queue admin-slow | ||
admin-fast-worker: python mcweb/manage.py process_tasks --queue admin-fast | ||
user-slow-worker: python mcweb/manage.py process_tasks --queue user-slow | ||
user-fast-worker: python mcweb/manage.py process_tasks --queue user-fast |
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
Oops, something went wrong.