Skip to content

Commit

Permalink
remove CELERY_TASK_SOFT_TIME_LIMIT variable
Browse files Browse the repository at this point in the history
No more referenced in the documentation
  • Loading branch information
elias-boulharts authored and Sispheor committed Nov 10, 2023
1 parent 58e2002 commit 536b125
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions Squest/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,6 @@
CELERY_BROKER_URL = os.environ.get('CELERY_BROKER_URL', 'amqp://rabbitmq:rabbitmq@rabbitmq:5672/squest')
print(f"CELERY_BROKER_URL: {CELERY_BROKER_URL}")
# Add a five-minutes timeout to all Celery tasks.
CELERY_TASK_SOFT_TIME_LIMIT = int(os.environ.get('CELERY_TASK_SOFT_TIME_LIMIT', 300))
print(f"CELERY_TASK_SOFT_TIME_LIMIT: {CELERY_TASK_SOFT_TIME_LIMIT}")
CELERY_TASK_ALWAYS_EAGER = TESTING
CELERY_WORKER_HIJACK_ROOT_LOGGER = False
CELERY_ACCEPT_CONTENT = ['json', 'msgpack']
Expand Down
6 changes: 0 additions & 6 deletions docs/configuration/squest_settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,6 @@ Refer to the complete [documentation](https://docs.djangoproject.com/en/4.2/ref/
RabbitMQ message broker URL. The default value is localhost to match the development configuration.
Replace `localhost` by `rabbitmq` in production when using the docker-compose based deployment.

### CELERY_TASK_SOFT_TIME_LIMIT

**Default:** `300`

Async task execution timeout. [Doc](https://docs.celeryproject.org/en/v2.2.4/configuration.html#celeryd-task-soft-time-limit).

### LANGUAGE_CODE

**Default:** `en-us`
Expand Down

0 comments on commit 536b125

Please sign in to comment.