KG
04/22/2024, 6:18 PMMarvin
04/22/2024, 6:19 PMtimeout_secondstimeout_secondstimeout_secondstimeout_secondsconcurrent.futuresKG
04/22/2024, 6:24 PMKG
04/22/2024, 6:25 PMNate
04/22/2024, 6:56 PMwith_optionsMarvin
04/22/2024, 6:56 PMtimeout_secondswith_optionswith_optionswith_optionstimeout_secondspython
from prefect import task, flow
@task
def my_task(some_arg):
    # Your task implementation here
    pass
@flow
def my_flow():
    my_task.with_options(timeout_seconds=12)(some_arg='value')
    my_task(some_arg='another value')  # Without option override, will use default timeoutmy_task.with_options(timeout_seconds=12)(some_arg='value')my_tasktimeout_secondswith_optionsmy_task.with_options(...)KG
04/22/2024, 7:01 PMNate
04/22/2024, 7:04 PMNate
04/22/2024, 7:04 PMKG
04/22/2024, 7:05 PMNate
04/22/2024, 7:05 PM