timgit / pg-boss

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

Ability to notify the workers to skip waiting #328

Closed ilijaNL closed 2 years ago

ilijaNL commented 2 years ago

Add a method which notifies the worker that something has been changed and therefore canceling or skipping the loopDelay.

This gives ability reduce the jobs overal latency.

coveralls commented 2 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 60b60436c37c07b19a8a3946ef07c043f00900d4 on ilijaNL:notify_worker into f06049376497ef9a03afb9c0f0a64c501d056217 on timgit:master.

ilijaNL commented 2 years ago

Any possible review? @timgit

timgit commented 2 years ago

This has been merged and deployed in version 7.3.0. Thanks!