Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nextRunAt returns a new Date() even when it is non-recurring and should return null #70

Open
dbleier opened this issue Jan 16, 2025 · 0 comments

Comments

@dbleier
Copy link

dbleier commented Jan 16, 2025

Pulse v1.6.7
when querying pulse.jobs()

nextRunAt: nextRunAt || new Date(),

There is a comment that this should not happen with non-recurring jobs

The retrieved job

{
  _id: {...},
  name: "schedule integration - 678980fd73095d1fc73c3036",
  data: {
    user: {...},
    body: {...},
  },
  priority: 0,
  shouldSaveResult: false,
  attempts: 0,
  backoff: null,
  lastModifiedBy: null,
  lockedAt: null,
  lastRunAt: "2025-01-16T21:59:00.000Z",
  finishedCount: 1,
  lastFinishedAt: "2025-01-16T21:59:00.008Z",
  runCount: 1,
  type: "normal",
  nextRunAt: "2025-01-16T22:00:43.448Z",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant