timgit / pg-boss

Queueing jobs in Postgres from Node.js like a boss
MIT License
2.15k stars 160 forks source link

pollingIntervalSeconds question #487

Closed afedotov-align closed 1 month ago

afedotov-align commented 2 months ago

Hi @timgit ,

Could you please explain the logic of pollingIntervalSeconds parameter?

We have a scheduled job, and pollingIntervalSeconds set to 10 (seconds), and our job never actually got executed (there should be log), but in the database it says that it's completed. Then when we set pollingIntervalSeconds to 0.5 seconds - it's executed. How does it work with pollingIntervalSeconds and why might this happen?

Thanks, Artem.

timgit commented 2 months ago

Can you post your code?