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

Deleted broken schedules still run #308

Closed
xiaoniu-578fa6bff964d005 opened this issue Jul 26, 2018 · 1 comment
Closed

Deleted broken schedules still run #308

xiaoniu-578fa6bff964d005 opened this issue Jul 26, 2018 · 1 comment

Comments

@xiaoniu-578fa6bff964d005

I am using django-q.models.Schedule and find it keep on logging "ERROR Failed ..." even I have deleted all schedule from admin console.

That's how I got this:
I used django-q.tasks.schedule to add some schedules. Later, I found that the number of arguments for the function is wrong, so I delete these schedule in admin console. However django-q kept on retring running this broken task and failed over and over.

Now I have no Schedule object in “/admin/django_q/schedule”, but after I run python manage.py qcluster, I got

23:55:43 [Q] INFO Process-1:2 ready for work at 3022
23:55:43 [Q] INFO Process-1:3 monitoring at 3023
23:55:43 [Q] INFO Process-1:4 pushing tasks at 3024
23:55:43 [Q] INFO Process-1:1 ready for work at 3021
23:55:43 [Q] INFO Process-1 guarding cluster at 3020
23:55:43 [Q] INFO Q Cluster-3018 running.
23:55:43 [Q] INFO Enqueued 96
23:55:43 [Q] INFO Process-1 created a task from schedule [CleanExpireCandidateCronJob]
23:55:43 [Q] INFO Process-1:2 processing [missouri-utah-thirteen-red]
23:55:43 [Q] INFO Process-1:1 processing [quiet-red-cola-fillet]
23:55:43 [Q] INFO Process-1:2 processing [zebra-winner-summer-west]
23:55:43 [Q] INFO Process-1:1 processing [fillet-victor-jig-undress]
23:55:43 [Q] INFO Process-1:2 processing [march-black-tango-lemon]
23:55:43 [Q] ERROR Failed [missouri-utah-thirteen-red] - CleanExpireCandidateCronJob() takes 0 positional arguments but 2 were given
23:55:43 [Q] ERROR Failed [quiet-red-cola-fillet] - CleanExpireCandidateCronJob() takes 0 positional arguments but 2 were given
23:55:43 [Q] ERROR Failed [zebra-winner-summer-west] - CleanExpireCandidateCronJob() takes 0 positional arguments but 2 were given
23:55:43 [Q] ERROR Failed [fillet-victor-jig-undress] - CleanExpireCandidateCronJob() takes 0 positional arguments but 2 were given
23:55:43 [Q] ERROR Failed [march-black-tango-lemon] - CleanExpireCandidateCronJob() takes 0 positional arguments but 3 were given
...

My environment:
django.VERSION: (2, 0, 5, 'final', 0)
django-q==0.9.4

@xiaoniu-578fa6bff964d005 xiaoniu-578fa6bff964d005 changed the title Cannot delete broken schedule Deleted broken schedules still run Jul 26, 2018
@xiaoniu-578fa6bff964d005
Copy link
Author

I found that delete all the items in OrmQ models will remove old broken schedules.

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

1 participant