https://prefect.io logo
Title
r

Rikimaru Yamaguchi

02/17/2023, 2:39 AM
Hello
prefect deployment build
Is it possible to set the cron timezone with this command?
j

James Sopkin

02/17/2023, 2:40 AM
Yes just add a ‘—cron’ flag
r

Rikimaru Yamaguchi

02/17/2023, 2:42 AM
Thanks. For example, this command would result in UTC. I want Asia/Tokyo.
prefect deployment build demo.py:pipeline --cron "0 0 * * *"
j

James Sopkin

02/17/2023, 2:43 AM
ahh okay. Let me look more into that. It is possible to manually edit the deployment yaml file to add a timezone, but I'm not sure if it can be done with the deployment build cli command
r

Rikimaru Yamaguchi

02/17/2023, 2:44 AM
After all. I see. I understand! I hope you can do it on command ! Thanks. That was very helpful.
j

James Sopkin

02/17/2023, 2:45 AM
@Rikimaru Yamaguchi There is also a timezone flag
prefect deployment build demo.py:pipeline --cron "0 0 * * *" --timezone 'Asia/Tokyo`
🔥 1
r

Rikimaru Yamaguchi

02/17/2023, 2:47 AM
Amazing! Best for. I’ll give it a try.
👍 1
It was possible! Thank you so much.
j

James Sopkin

02/17/2023, 2:50 AM
You're welcome Rikimaru!