django - set time_limit for celery periodic task -


i have celery worker (run through celeryd daemon), accepting both periodic tasks , async tasks. problem i'm not able fix how set time_limit periodic tasks? tried use

@periodic_task(run_every(crontab(hour='*/2', minute=0)), time_limit=500) 

but won't override time_limit setting in /etc/default/celeryd, 300s

i tried add second @task decorator

@periodic_task(run_every(crontab(hour='*/2', minute=0)), time_limit=500) @task(time_limit=500) def my_task(): 

but doesn't work, either.

so what's correct way of doing this?


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -