Is there any reason the scheduled jobs can't run o...
# ask-community
x
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
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
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
Thanks! trying this now
x
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
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
Thanks, let me try.
k
I mean current time is EDT so you’ll get 1 hour off
x
It worked. Thanks Kevin.
QQ: Do we have any feature to show the flows and deployments in UI based on user login/credentials?
k
When we get multiple workspaces, you’ll be able to specify who sees what. It will be on the workspace level
x
Please share an example doc link. Thanks, Xavier Babu
k
The feature has not been rolled out yet, but will be part of prefect cloud going off of beta