James Zhang
01/06/2023, 12:54 PMprefect.deployments.run_deployment()
, is it possible to start these deployment runs concurrently?Ben Muller
01/06/2023, 7:38 PMBianca Hoch
01/06/2023, 7:51 PMJames Zhang
01/07/2023, 1:27 PMBen Muller
01/07/2023, 10:38 PMJames Zhang
01/12/2023, 9:43 AM@flow
def main_flow():
for x in y:
start_single_deployment.submit()
....
@task
def start_single_deployment():
run_deployment(...)
in this way i can still get the states from the run_deployment()
in subflowsBen Muller
01/12/2023, 9:49 AMJames Zhang
01/12/2023, 9:54 AMBen Muller
01/12/2023, 9:55 AMJames Zhang
01/12/2023, 9:57 AMrun_deployment()
returns a Future, so I guess the task runner in mainflow will watch thatBen Muller
01/12/2023, 10:00 AMJames Zhang
01/12/2023, 10:06 AM