Wanted to gauge any interest in the following enha...
# ask-community
b
Wanted to gauge any interest in the following enhancement to the ShellTask. We were thinking that there would be value in having the ability to access context like task_name, flow_name, etc.
k
Hey @Braun Reyes, I’m having a hard time picturing what you would do. Are you trying to use context info the in command of the ShellTask?
b
so in dbt I can reference envars in my dbt_project.yml and other places. This means I could potentially make use of the underlying prefect task/flow metadata.
for us the use case was isolating dbt artifacts when you are running many dbt run commands in a single flow.
or you want to have prefect flow/task run data available in the artifacts themselves.
you can try an pass them in as envars directly in the current shell task, but does not look like they are lazily evaluated that way.
k
Did you pass try passing them in the
run
method? I think that would lazily evaluate it
b
oh...I did not
I will try that
thanks