Closed roytz closed 6 years ago
No. I do this manually during testing.
On Dec 18, 2017, at 6:55 AM, roytz notifications@github.com wrote:
Is there a way (beside connecting to PG and doing it manually) to delete all jobs using pg-boss api?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
Do you still do this? I'm having trouble finding an example in the tests.
There's no api for it atm
Oh, when you said manually, I thought you meant there was a DROP ALL
or TRUNCATE
statement somewhere in the tests.
But I guess you mean you just login to the server and do this manually between test runs?
Yes, /test/testHelper.js
has a couple scripts to delete things for some tests, but it's not surfaced in the pg-boss module.
Is there a way (beside connecting to PG and doing it manually) to delete all jobs using pg-boss api?