pg-boss: Failing jobs on server shutdown
I call await boss.stop (), but the active jobs remain in the database and do not resume after the server restart. Should I call boss.fail() for each active tasks manually or does pg-boss have a built-in methods?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (7 by maintainers)
I have implemented wrapper for PgBoss which allows to fail running jobs on shutdown. So far, I’m not completely sure about its stability. I did some tests and they all passed without problems (that is, after crashing the server, all incomplete jobs will be resumed)
How to use: