Closed gavacho closed 3 years ago
How many schedules do you have in your pgboss.schedule table? I see how there could be a race condition here during onCron()
as it's running. The only check for isStopped
is at the very beginning and I don't have it checking line by line.
select count(1) from pgboss.schedule
returned 7
pg-boss is throwing an error when our app shuts down:
Based on our logs, we know that
await boss.stop()
has already returned when this exception is thrown. It looks likeTimekeeper.onCron
is executing afterawait boss.stop()