<@ULVA73B9P> can pendulum be used in the prefect y...
# ask-marvin
c
@Marvin can pendulum be used in the prefect yaml file to get a date?
m
Using
pendulum
directly in a Prefect YAML file isn't something explicitly supported or documented. The YAML file is primarily used for configuring deployments, scheduling flow runs, and managing execution environments. While you can define schedules using datetime objects, such as
anchor_date
, the use of Python libraries like
pendulum
within the YAML itself isn't directly supported. If you need to use
pendulum
to calculate dates, you would typically do this in your Python code and then pass these values to your Prefect configuration. For more on how to define deployments and schedules in YAML, you can refer to these resources: - Prefect YAML Deployment - Adding Schedules If you're using Prefect 3.x, you might consider calculating the date with
pendulum
in your Python script and then using that value in your Prefect configuration.