maxcountryman / underway

⏳ Durable step functions via Postgres.
Apache License 2.0
72 stars 2 forks source link

Scheduler early return exits job #26

Closed maxcountryman closed 1 month ago

maxcountryman commented 1 month ago

When a scheduler can't acquire the advisory lock, it returns from its run method. But this also causes jobs to exit from their run methods which isn't really what we want. Instead the job should continue and ignore the fact that a scheduler can't be run (another is probably already running anyway).