Closed leventov closed 4 years ago
I updated the docs for this. Thanks for the feedback https://github.com/timgit/pg-boss/commit/6f5567edad817660aba9a2eadc3feb29792bcae4v
Thanks. Could you please comment on the need for manual boss.complete(job.id)
?
I added an enhancement label to that issue. :+1:
https://github.com/timgit/pg-boss/blob/master/docs/usage.md#oncompletename--options-handler
1)
onComplete()
handler apparently doesn't make the completion job completed if it just normally exits. The code example in the doc contains a non-existentfinished()
function call which kind of indicates that: it only works if I replacefinished()
withboss.complete(job.id)
2) Instead of example
I think it would be clearer to show that the job passed into handler is actually: