Skip to content
This repository was archived by the owner on Jun 18, 2025. It is now read-only.

Commit 364ae9a

Browse files
author
b0dea
committed
fix: revert to 1.6.3 nextRunAt default
1 parent d28b9b8 commit 364ae9a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/job/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,7 @@ class Job<T extends JobAttributesData = JobAttributesData> {
215215
type: type || 'once',
216216
// if a job that's non-recurring has a lastFinishedAt (finished the job), do not default nextRunAt to now
217217
// only if it will be defaulted either by explicitly setting it or by computing it computeNextRunAt
218-
nextRunAt:
219-
repeatAt || repeatInterval ? nextRunAt || new Date() : !lastFinishedAt ? nextRunAt || new Date() : nextRunAt,
218+
nextRunAt: nextRunAt || new Date(),
220219
};
221220
}
222221

0 commit comments

Comments
 (0)