Is there is a `non_argument_deps` equivalent for o...
# ask-community
b
Is there is a
non_argument_deps
equivalent for ops? I’m trying to get
create_shell_command_op
working as part of a graph-backed asset, where the shell command that’s being run relies on a file that a previous asset function dropped to the file system. You can do that with assets, but I can’t figure out how to do it with ops. (I’ll take any and all examples of
create_shell_command_op
- really struggling with it.)
🤖 1
j
hey @Ben Ogorek the equivalent is a concept called Nothing dependencies it looks like
create_shell_command_op
makes an op with a nothing dependency called
start
should you should be able to do this
Copy code
@op
def run_before_shell():
   ...

shell_op = create_shell_command_op(...)

@graph
def my_graph():
   shell_op(start=run_before_shell())
👍 1