Charles Leung
04/16/2024, 4:05 PMNate
04/16/2024, 4:37 PMtask_run_states
out of the FlowRunContext
and use that to decide what work is still outstanding at any point in timeCharles Leung
04/16/2024, 5:47 PM@flow
async def earnings_demo_03_2024(env, injected_code):
logger = get_run_logger()
hmaster_port_number = await grab_hmaster_port(env)
conn = await grab_access_port_handle.submit(env, hmaster_port_number)
conn1 = await grab_access_port_handle.submit(env, hmaster_port_number)
conn2 = await grab_access_port_handle.submit(env, hmaster_port_number)
test = get_run_context()
print(test.task_run_states)
#more tasks downstream of this...
And I see that its returning an emtpy list.. am I using this correctly?Nate
04/16/2024, 8:34 PMNate
04/16/2024, 8:35 PMNate
04/16/2024, 8:35 PM