Django Celery Task does not execute with .delay -


i able execute task no problem using

    scrape_adhoc_reporting([store], [types], inventory) 

this problem though, because task can take hour. try make task async. tried both of following:

    scrape_adhoc_reporting.apply_async(args=[[store], [types], inventory])     scrape_adhoc_reporting.delay([store], [types], inventory) 

both of these methods did not work. view redirects should, task never gets executed. there no errors in error log. insight doing wrong?

edit: after looking around little bit more, see people talking registering task. need do?

i ran in same issue , solved it. matth right: due non-running workers.

i'm using django (1.5), celery (3.0+) , django-celery on windows. celery beat working, followed tutorial: http://mrtn.me/blog/2012/07/04/django-on-windows-run-celery-as-a-windows-service/ on windows, beat can launched service.

however, you, tasks launched not executed. came bug in packaged version django-windows-tools (from pip).

i fixed issue downloading latest version of django-windows-tools github (https://github.com/antoinemartin/django-windows-tools).


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -