Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Job OK but target function doesn't executed #204

Open
proft opened this issue Nov 18, 2016 · 2 comments
Open

Job OK but target function doesn't executed #204

proft opened this issue Nov 18, 2016 · 2 comments

Comments

@proft
Copy link

proft commented Nov 18, 2016

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:

  1. Started from admin
  2. In log I see 17:32:14 default: Job OK
  3. Check mailbox for message - nothing
  4. Check field with status - false (must be true)
  5. 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
@kvnramirez
Copy link

Having the same trouble, some jobs are queued but never executed. Anyone already solved this?

@kvnramirez
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants