Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/core/src/transitions/snooze-transition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { JobTransition } from "./transition";
* If the job is currently running, it will decrement the attempt count.
* This allows the job to be retried after the delay.
*
* Only jobs in "waiting" or "running" state can be snoozed.
* Only jobs in "waiting" or "claimed" or "running" state can be snoozed.
*/
export class SnoozeTransition extends JobTransition {
/** The delay in milliseconds. */
Expand Down Expand Up @@ -40,6 +40,6 @@ export class SnoozeTransition extends JobTransition {
}

shouldRun(job: JobData): boolean {
return ["waiting", "running"].includes(job.state);
return ["waiting", "claimed", "running"].includes(job.state);
}
}
Loading