Dominik Wagner
08/01/2022, 3:19 PMprefect deployment buildā¦
command? i.e. i have something like this in a bash script:
prefect deployment build flows/dbt_flow.py:dbt_primary_flow \
--name prod_flow \
--tag dbt \
--tag prod \
--tag daily \
-sb gcs/gcs-block \
-ib kubernetes-job/k8s-block
And Iād like to add something like --schedule "cron/0 7 * * */Europe/Berlin"
If thatās not possible I guess I have to manually edit the deployment.yaml - if thatās the case, can I just put a cron expression in there, or do I need something else? I canāt find any examples in the docs, but maybe Iām just blind? šJeff Hale
08/01/2022, 3:40 PMdeployment.yaml
or the GUI. Hereās how it looks in the yaml file:
schedule:
interval: 600
timezone: America/Chicago
schedule:
cron: 0 0 * * *
timezone: America/Chicago
schedule:
rrule: 'FREQ=WEEKLY;BYDAY=MO,WE,FR;UNTIL=20240730T040000Z'
Note that timezones are optional and RRule is only supported in the deployment YAML file, currently.Dominik Wagner
08/01/2022, 3:43 PMJeff Hale
08/01/2022, 3:52 PMBenny Warlick
08/01/2022, 9:33 PMJeff Hale
08/01/2022, 10:35 PMBenny Warlick
08/01/2022, 10:53 PMDominik Wagner
08/02/2022, 6:54 AMprefect deployment build
step all together?Benny Warlick
08/02/2022, 2:10 PM