Closed Eomm closed 3 months ago
The semantics of "error" is reserved for something unexpected happening during maintenance or cron handling, not a promise that wasn't cancelled before shutdown. If pg-boss were to detect and signal on a promise it had to give up on, I guess a new event could be created for that.
pg-boss version: 9.0.3
When a job is slow, the
timeout
parameter does not trigger any error/event nor the job.Give the following snippet, it runs correctly with exit code 0 and no errors. I would expect an
error
event as notification that a job did not completed successfully.It seems that the error is ignored here:
https://github.com/timgit/pg-boss/blob/64df1e471fdd44469702467ff09420c7396ba685/src/manager.js#L239
What do you think?