https://dagster.io/ logo
#ask-community
Title
# ask-community
s

sonny arora

07/23/2023, 5:18 PM
Hello! I am converting an existing pipeline to a Dagster-based workflow. I have a shell command to download some files. I was looking at using the Dagster-shell module to run the shell script. In the example here: https://docs.dagster.io/_apidocs/libraries/dagster-shell, the function that runs the Dagster shell command has a graph decorator. Is there any reason to use a graph decorator over an op decorator here? Is there something going on in terms of background logging or some other reason why one would be preferable to another?
z

Zach

07/24/2023, 3:31 PM
create_shell_command_op
creates an op, and ops can only be used in
@graph
definitions or
@job
definitions
👍 1
s

sonny arora

07/24/2023, 8:45 PM
Thank you!
🎉 1
6 Views