timgit / pg-boss

Queueing jobs in Node.js using PostgreSQL like a boss
MIT License
1.73k stars 144 forks source link

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

Open leland-86 opened 9 months ago

leland-86 commented 9 months 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