mirror of
https://github.com/hansjone/dsh-ops-cron.git
synced 2026-10-09 04:40:48 +08:00
Add cron_retrigger for consumed one-shot jobs.
Resume only unpauses; listeners need a native way to re-fire the same job id with a new run without creating duplicate executors. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
6724332114
commit
c11221606a
9 changed files with 324 additions and 7 deletions
|
|
@ -439,6 +439,7 @@ test('registerCronTools registers each definition and disposer unregisters', ()
|
|||
'cron_progress',
|
||||
'cron_pause',
|
||||
'cron_resume',
|
||||
'cron_retrigger',
|
||||
'cron_delete',
|
||||
])
|
||||
off()
|
||||
|
|
@ -454,6 +455,7 @@ test('cron tool output schemas never use type arrays (Host rejects them)', () =>
|
|||
async getProgress() { return { snapshots: [], count: 0 } },
|
||||
async pauseJob() { return {} },
|
||||
async resumeJob() { return {} },
|
||||
async retriggerJob() { return {} },
|
||||
async deleteJob() { return {} },
|
||||
})
|
||||
const bad = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue