Skip to content

Commit

Permalink
Disable Celery rate limits in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
seanh committed Nov 22, 2023
1 parent 4c79e32 commit 3a733fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions h/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@
# This can be overridden on a per-task basis by adding time_limit=n to the
# task's @app.task() arguments.
task_time_limit=240,
# Disable Celery task rate limits in local development.
worker_disable_rate_limits=os.environ.get("DEV") == "true",
imports=(
"h.tasks.annotations",
"h.tasks.cleanup",
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ passenv =
setenv =
PYTHONUNBUFFERED = 1
REPORT_FDW_USERS=lms-fdw report-fdw
dev: DEV = {env:DEV:true}
dev: PYTHONPATH = .
dev: APP_URL = {env:APP_URL:http://localhost:5000}
dev: WEBSOCKET_URL = {env:WEBSOCKET_URL:ws://localhost:5001/ws}
Expand Down

0 comments on commit 3a733fd

Please sign in to comment.