-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
Foreign key constraint error when deleting queue #514
Comments
Update: I've since been able to delete the queue by first deleting all the queue's jobs before deleting the queue itself. I've now tried setting up a queue with the same name and it has very unpredictable behaviour: sometimes it works, sometimes it doesn't. On times it doesn't work, I get the error like so:
I've tried manually deleting all the referenced partitions like so:
I've been able to successfully delete the partitions but somehow the relation already exists error keeps on showing up when I try creating a queue with the same name to one that I already deleted? 2 questions @timgit :
|
There is a test in the suite that does exactly this. It deletes and re-creates a queue. Was this perhaps a unique failure use case? |
Update: Must've been an issue on my side because I tried creating queues concurrently:
A refactor to a more one-by-one queue creation seems to have resolve the issue:
Anywhere in the docs I can find situations in which i might run into a deadlock error? |
I am using pgBoss v10 on node version 22 and postgresql 16. I have tried deleting a queue existing in my DB by invoking the .deleteQueue("myQueueName") method. However, the queue isn't being deleted and I get this error:
Am I strictly limited to manually deleting queues from my DB instead of invoking the deleteQueue API?
The text was updated successfully, but these errors were encountered: