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

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

@dbleier

Description

@dbleier

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",
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions