Agenda - v6.0.0
    Preparing search index...

    Function applyAllDateConstraints

    • Apply all date constraints (date range and skip days) to a computed nextRunAt. This is the main function to use when computing nextRunAt.

      Parameters

      • nextRunAt: Date

        The base computed next run time

      • options: { endDate?: Date; skipDays?: number[]; startDate?: Date; timezone?: string }

        Constraint options

      Returns Date | null

      The adjusted date respecting all constraints, or null if invalid