https://prefect.io logo
Title
x

Xavier Babu

05/25/2022, 4:34 PM
Is there any reason the scheduled jobs can't run on-time if it is scheduled one time using RRule? I see it is scheduled with correct DTSTART and Count = 1. But prefect agent is not picking up and running it immediately. Prefect Orion 2.0b
k

Kevin Kho

05/25/2022, 5:08 PM
I would need to try this myself to take a look. Do you have a sample I could use to test? No worries if you have none
x

Xavier Babu

05/25/2022, 8:09 PM
DeploymentSpec( flow_name="Flex_Report_cid_uid_update", flow_location="Flex_Report_cid_uid_update_v1.py", name="Flex_Report_cid_uid_update_DS_1", schedule=RRuleSchedule.from_rrule(rrule(freq=MINUTELY, dtstart=pendulum.datetime(2022,5,25,12,26,0,tz=pendulum.timezone('EST')), until=pendulum.datetime(2022,5,25,12,29,0, tz=pendulum.timezone('EST')), interval=1, count=1)), tags=['waves_q'], parameters={}, flow_runner=SubprocessFlowRunner(condaenv="prefect2", stream_output=True) )
k

Kevin Kho

05/25/2022, 8:09 PM
Thanks! trying this now
x

Xavier Babu

05/25/2022, 8:10 PM
It should start at 12:26 PM EST and run only once. I see the scheduled flow in the UI, but it was not trigged for hours.
Thanks, Kevin.
Prefect Orion 2.0b3
k

Kevin Kho

05/25/2022, 9:03 PM
I think you’re right. Been looking at it
So the timestamp is deceiving because of the EST. The current timestamp is EDT. You can use
US/Eastern
instead of setting EST vs EDT.
x

Xavier Babu

05/25/2022, 11:04 PM
Thanks, let me try.
k

Kevin Kho

05/26/2022, 12:43 AM
I mean current time is EDT so you’ll get 1 hour off
x

Xavier Babu

05/26/2022, 6:21 PM
It worked. Thanks Kevin.
QQ: Do we have any feature to show the flows and deployments in UI based on user login/credentials?
k

Kevin Kho

05/26/2022, 6:30 PM
When we get multiple workspaces, you’ll be able to specify who sees what. It will be on the workspace level
x

Xavier Babu

05/27/2022, 1:44 AM
Please share an example doc link. Thanks, Xavier Babu
k

Kevin Kho

05/27/2022, 1:46 AM
The feature has not been rolled out yet, but will be part of prefect cloud going off of beta