Sébastien
12/11/2020, 3:53 PMtime.sleep(x)
right before with Flow():
, will the run respect that sleep before spinning up the cluster, or does a run work differently (e.g. only runs code inside the flow's task graph)?nicholas
with Flow()
block only defines the flow, it doesn't run it. To run the flow, you would either call flow.run()
(to run locally with Core-only) or make a call to the API `create_flow_run`(using either GraphQL or the UI).Sébastien
12/11/2020, 3:58 PMtime.sleep(x)
before the flow's context manager, or if I need to update the Schedule to include an adjustments=
for those seconds of sleep it would've had.nicholas
time.sleep
, since that'll probably produce more reliable results.Sébastien
12/11/2020, 4:03 PM@task
would run inside the flow, right? And I need the sleep to happen before it constructs the flow.nicholas
Sébastien
12/11/2020, 4:07 PMnicholas
Sébastien
12/11/2020, 4:11 PMnicholas
Sébastien
12/11/2020, 4:14 PMnicholas
Sébastien
12/11/2020, 4:16 PMtime.sleep
.
Long-term it's the more robust solution, but there should be a middle option.nicholas
Sébastien
12/11/2020, 4:36 PMtime.sleep
wouldn't work right before the Flow (does it pickle only once during registration?), so I'm not sure I can be of much help.nicholas
time.sleep
will only run at that point and not before execution. You might try extending a resource manager and using the sleep there? Otherwise I'd suggest using a local dask executor to avoid hitting the timeouts on your current platform.Sébastien
12/11/2020, 5:18 PMadjustments=
entry to say "at least X time after the last run" (for all flows vs current flow only)?
The schedule would stay the same, and the adjustment could adjust itself based on the last run.nicholas