Got Prefect 2.3.0 just now, hopefully the python p...
# ask-community
v
Got Prefect 2.3.0 just now, hopefully the python path problem is fixed in it. Got to try. Before that, I have this question:
Copy code
deployment = Deployment.build_from_flow(flow_name=workflow_orchestration,\
                                        name="Workflow Orchestration", \
                                        version="1", tags=["Iris"],\
                                        schedule={'interval': 600, 'timezone': "Asia/Kolkata"})
I want to provide schedules like every hour, once in a week, once in a month, etc. In CLI, I saw something like --rrule option for frequency-based scheduling. What is the equivalent option in Python? I searched online, but I could not find a comprehensive documentation that explains with examples. Thanks! Thread in Slack Conversation
1
j
Good question. This is something we need to update in the docs. This hot-off-the-press post shows an example for an IntervalSchedule in a Python-defined deployment. And the API docs have the specifics for the RRuleSchedule class. https://docs.prefect.io/api-ref/orion/schemas/schedules/#prefect.orion.schemas.schedules.RRuleSchedule
🙌 1