Dmytro Ponomarchuk
02/27/2023, 10:19 AMrun_deployment()
?redsquare
02/27/2023, 10:26 AMDmytro Ponomarchuk
02/27/2023, 10:33 AMresponse
is a flow_run Object instance with a lot of flow run metadata like
parent_task_run_id=UUID('cb8e0539-105b-442c-a612-35c23c864394') state_type=StateType.COMPLETED state_name='Completed' run_count=1 expected_start_time=DateTime(2023, 2, 27, 10, 6, 20, 95933, tzinfo=Timezone('+00:00')) next_scheduled_start_time=None start_time=DateTime(2023, 2, 27, 10, 7, 24, 908706, tzinfo=Timezone('+00:00')) end_time=DateTime(2023, 2, 27, 10, 8, 8, 574225, tzinfo=Timezone('+00:00')) total_run_time=datetime.timedelta(seconds=43, microseconds=665519) estimated_run_time=datetime.timedelta(seconds=43, microseconds=665519) estimated_start_time_delta=datetime.timedelta(seconds=64, microseconds=812773) auto_scheduled=False infrastructure_document_id=UUID('81c5f332-1885-4528-bb89-f6817344fd8f') infrastructure_pid='prefect::arn:aws:ecs:us-east-1:800110064595:task/prefect/246014503a3f4eadaf1744382d5523c1' created_by=CreatedBy(id=UUID('a53724b8-0ecf-4d05-9581-87aa21ef61aa'), type='BOT', display_value='prefect-ecs-agent') work_pool_name='default-agent-pool' state=Completed(message=None, type=COMPLETED, result=None)
but I would like to get the flow return valueredsquare
02/27/2023, 10:35 AMDmytro Ponomarchuk
02/27/2023, 12:03 PMpersist_result=True
to the flow decorator.