https://prefect.io logo
#prefect-community
Title
# prefect-community
c

Charles Leung

09/10/2020, 6:14 PM
Hi everyone - is there a way to parameterize a shell task?
g

Gabriel Montañola

09/10/2020, 6:16 PM
not sure if this is a "dumb" way but I would just put the result of a
String Template
task as the command. https://docs.prefect.io/api/latest/tasks/strings.html
d

Dylan

09/10/2020, 6:18 PM
That’s an excellent solution!
🤩 1
c

Charles Leung

09/10/2020, 6:38 PM
Ah Thank you! 😞 that's kind of annoying to need to do that for every shell task though.. this works however!
g

Gabriel Montañola

09/10/2020, 6:41 PM
Oh, I think you only need to instantiate the Task one time. After this you just call it with different template/args.
d

Dylan

09/10/2020, 6:42 PM
Sorry, @Charles Leung can you explain what you’re looking to accomplish in a little more detail?