Job OK but target function doesn't executed
Hello!
I have long running task (mailing list). My function fetch all recipients and send simple notify, then set flag and then send status. On test stage with 2 recipients it doesn't go till end. Steps:
- Started from admin
- In log I see
17:32:14 default: Job OK - Check mailbox for message - nothing
- Check field with status -
false(must betrue) - Check mailbox for status message - nothing
So, why Job OK but function with task doesn't executed?
My environment
Django==1.6.6
django-rq==0.8.0
Having the same trouble, some jobs are queued but never executed. Anyone already solved this?
The only partial solution that I found with django is to store a record on the db with creation time and some status(pending, executed, error) and enqueuing the job and then run a cron job with a django managament command to manually check how much time passed after object creation and if it's still pending and then enqueue the job again expecting some worker take and proccess it.