Agenda - v6.0.0
    Preparing search index...

    Function applyDateRangeConstraints

    • Applies date range constraints to a nextRunAt date.

      • If nextRunAt is before startDate, returns startDate
      • If nextRunAt is after endDate, returns null (job should not run)

      Parameters

      • nextRunAt: Date

        The computed next run time

      • OptionalstartDate: Date

        Optional start date constraint

      • OptionalendDate: Date

        Optional end date constraint

      Returns Date | null

      The adjusted date, or null if outside valid range