aliheh
10/30/2024, 6:08 PMNate
10/30/2024, 6:51 PMwith_options
from prefect import task
@task
def barebones(x): print(x)
barebones.with_options(log_prints=True, task_run_name="running {x}")(42)
gives
13:51:28.690 | INFO | Task run 'running 42' - 42
13:51:28.696 | INFO | Task run 'running 42' - Finished in state Completed()
Nate
10/30/2024, 6:51 PMaliheh
10/31/2024, 3:02 AM