You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think if this happens the most likely cause is a programming error that should be reported immediately and not ignored. For example adding a new task type without restarting your worker. I'd want to get an error as soon as possible.
its isn't as you say. Just two queues working on the same job table - each wanting to work on their own tasks. Your description would fit if every queue needs to work on every task.
You have multiple queues created. e.g.
Once woken, workers will work through all the tasks on the main job table.
But this worker's queue may not have a task which matches one in its available task list. You'll get a KeyError here:
https://github.com/gavinwahl/django-postgres-queue/blob/master/dpq/queue.py#L23
Instead of raising KeyError, the worker should do something useful. e.g.
DpqInvalidTask
I will make a PR with a test case highlighting the problem, and I think option 1 or 2 above is the best, i'll implement one of them.
The text was updated successfully, but these errors were encountered: