Andres
02/10/2023, 3:20 PMtask_args={"name": "current-task-run-name"}Christopher Boyd
02/10/2023, 4:16 PMAndres
02/13/2023, 11:54 AMgot an unexpected keyword argument 'task_run_name'.Christopher Boyd
02/13/2023, 1:39 PMAndres
02/13/2023, 3:52 PMtask_run_name="task_name" as a parameter to the taskChristopher Boyd
02/13/2023, 3:54 PM@task(task_run_name="task_name") or is that what you mean?Andres
02/13/2023, 3:58 PM@task(name="generic-task-name")
def task_a(name: str):
print(f"Hello {name}")
and then call it withing the flow like this:
@flow(name="Amazing-flow")
def my_flow():
task_a("Andres",task_run_name="task-to-say-hello-to-andres")Andres
02/13/2023, 3:58 PMAndres
02/14/2023, 1:05 PMChristopher Boyd
02/14/2023, 1:43 PMtask_a(name: str) does not have task_run_name defined, so you’re passing an argument that only exists in the wrapper