https://prefect.io logo
p

Paul Lucas

07/18/2022, 11:17 AM
Hi I’m trying to implement a dbt flow that runs our process but when I look at the tasks I just get
DbtShellTask
which isn’t very helpful. Is there a way to rename the individual tasks to something more useful? I’ve tried using
name
and
task_run_name
arguments but without any luck.
1
a

Anna Geller

07/18/2022, 11:19 AM
try with task_args:
Copy code
dbt_task = DbtShellTask(...)

with Flow("example") as flow:
    dbt_test = dbt_task(..., task_args={"name": "dbt-test"})
p

Paul Lucas

07/18/2022, 12:53 PM
Thank you, @Anna Geller Worked a charm!
🙌 1
2 Views