# Adjustments


Schedule adjustments are functions that accept a datetime and modify it in some way.

Adjustments have the signature Callable[[datetime], datetime].

# Functions

top-level functions:                                                                                                                                                       

prefect.schedules.adjustments.add

(interval)[source]

Adjustment that adds a specified interval to the date.

Args:

  • interval (timedelta): the amount of time to add
Returns:
  • Callable[[datetime], bool]: the adjustment function

prefect.schedules.adjustments.next_weekday

(dt)[source]

Adjustment that advances a date to the next weekday. If the date is already a weekday, it is returned unadjusted.

Args:

  • dt (datetime): the datetime to adjust
Returns:
  • datetime: the adjusted datetime

This documentation was auto-generated from commit bd9182e
on July 31, 2024 at 18:02 UTC