I have a task in Celery that could potentially run for 10,000 seconds while operating normally. However all the rest of my tasks should be done in less than one second. How can I set a time limit for the intentionally long running task without changing the time limit on the short running tasks?
相关问题
- flask application with watchdog observer
- Error message 'No handlers could be found for
- Django filesystem/file-based cache failing to writ
- ImportError: No module named dateutil
- Django - Should external API requests always be ma
相关文章
- getting error Received unregistered task of type &
- Celery worker hang when running with twisted
- How can to run task in 5 minutes after finish prev
- Celery Consumer SQS Messages
- Where is the data provided by django-celery urls s
- Running same function for multiple files in parall
- Celery: stuck in infinitly repeating timeouts (Tim
- Can't start Celery worker on Windows 10 with “
You can set task time limits (hard and/or soft) either while defining a task or while calling.
or
This is an example with decorator for an specific Task and Celery 3.1.23 using soft_time_limit=10000