timgit / pg-boss

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

Creating new function to edit the startAfter date of a job #426

Closed leland-86 closed 3 months ago

leland-86 commented 1 year ago

🚀 Enhancement: Introduced a function to seamlessly update the startAfter date of a job. 🔍 Why? Avoids using raw SQL or the inefficient method of deleting and recreating jobs if a job is to have a rescheduled startAfter date. 🛠 How? Accepts job ID and a valid new date, updating the startAfter field. ✅ Extras: Tests written and README updated.

Related: https://github.com/timgit/pg-boss/discussions/398

timgit commented 3 months ago

Please reopen if still needed based on the changes introduced in v10