https://prefect.io logo
a

Arsenii

10/21/2020, 8:54 AM
Hi all! Recently
task_run_name
was added to the
@task
decorator and it's beautiful -- however it prevents the flow from running locally for obvious reasons This makes local debugging (before deployment to Cloud) a pain since you'll have to remove and re-add this configuration all he time. Does anyone know a way to make Prefect just... ignore this parameter when the flow is run e.g. with
flow.run()
? Thanks!
j

josh

10/21/2020, 11:32 AM
Hi @Arsenii where are you seeing that it is preventing the flow from running locally? In the task runner is passes unless running with a backend.
a

Arsenii

10/22/2020, 9:40 AM
Heyo, maybe I'm doing something wrong but it gives me a
TypeError: __init__() got an unexpected keyword argument 'task_run_name'
if I try to run the flow in local CLI
j

josh

10/22/2020, 2:12 PM
Could you open an issue on the repo?
a

Arsenii

10/23/2020, 2:56 AM
My bad; the issue was because of Prefect version mismatch 🙂 Sorry for a false alarm!