Andre Muraro
07/27/2021, 12:50 AMKevin Kho
Mariia Kerimova
07/27/2021, 2:38 PMflow run
and your agents are deploying/registering those flow runs with Server. Can you show a redacted flow you're running?
The agent and flow runs have labels. If flow and agent labels are matching, the agent can deploy the flow run, moreover agent can have a superset of labels. So if your agents have same labels, any of them can deploy flow runs.Kevin Kho
Andre Muraro
07/27/2021, 3:26 PMKevin Kho
Andre Muraro
07/27/2021, 3:31 PMAndre Muraro
07/27/2021, 3:32 PMAndre Muraro
07/27/2021, 3:34 PMAndre Muraro
07/27/2021, 3:39 PMwith Flow('Importar Ordens Typeform', executor=LocalDaskExecutor(), state_handlers=[teams_handler]) as flow:
### Several tasks here
if prefect.config.debug == False:
flow.schedule=Schedule(clocks=[
CronClock("*/15 7-13,16-20 * * 1-5", start_date=pn.now(tz)),
CronClock("*/5 13-16 * * 1-5", start_date=pn.now(tz))
])
if prefect.config.environment == 'dev':
flow.visualize(filename='prototyping/boletas_mov')
flow.run(parameters=dict(since='2021-07-26', until='2021-07-27'))
I deploy them to prod via gitlab, where the script calls the cli to register.Kevin Kho
Andre Muraro
07/27/2021, 3:49 PMAndre Muraro
07/28/2021, 1:37 PMKevin Kho