pnscheduler 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scheduler.js +1 -1
- package/package.json +1 -1
package/dist/scheduler.js
CHANGED
@@ -66,7 +66,7 @@ class PNScheduler {
|
|
66
66
|
const res = await db.query(`
|
67
67
|
WITH updated_jobs AS (
|
68
68
|
UPDATE pnscheduler.jobs
|
69
|
-
SET status = 'skipped'
|
69
|
+
SET status = 'skipped', status_updated_at = NOW()
|
70
70
|
WHERE status = 'pending'
|
71
71
|
AND execution_date <= NOW()
|
72
72
|
AND grace_period IS NOT NULL
|