You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If timeout in cluster configuration is set to None (the default) or 0 (zero) the timeouts given as async_task parameter (for example, async_task('function', timeout=10)) is ignored.
You can test this with the following steps:
Set the timeout for cluster to None (or leave the timeout configuration parameter out)
Start shell: python manage.py shell
Run the following code:
from django_q.tasks import async_tast
async_task('time.sleep', 10, timeout=2)
If you look the output of python manage.py qcluster you will see that the task does not timeout but finishes after 10 seconds.
The text was updated successfully, but these errors were encountered:
… to None (the default)
The cluster timeout configuration default value None is documented to mean
tasks never timeout out. Also the documentation states that the timeout
can be overridden for individual tasks.
With the old implementation the timeout parameter given to async_task was
not honored if the cluster timeout was set to None.
Fixes: Koed00#335
If timeout in cluster configuration is set to
None
(the default) or0
(zero) the timeouts given as async_task parameter (for example,async_task('function', timeout=10)
) is ignored.You can test this with the following steps:
None
(or leave the timeout configuration parameter out)python manage.py shell
If you look the output of
python manage.py qcluster
you will see that the task does not timeout but finishes after 10 seconds.The text was updated successfully, but these errors were encountered: