# 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 3d0c939
on August 3, 2022 at 14:16 UTC