Shriram Holla
05/31/2022, 2:44 AMshell_op
?Stefan Adelbert
05/31/2022, 2:51 AMshell_op
? I haven't come across that before.Shriram Holla
05/31/2022, 2:57 AMStefan Adelbert
05/31/2022, 2:59 AMdagster_shell.create_shell_command_op
which takes a name
parameter.
https://docs.dagster.io/_apidocs/libraries/dagster-shell
Is that what you're after?Shriram Holla
05/31/2022, 3:09 AMcreate_shell_command_op
doesn’t allow me to set it dynamicallyStefan Adelbert
05/31/2022, 3:59 AMname
and description
to be dynamic.
def some_op(type: str):
@op(name=f"some_op_{type}")
def _some_op(context):
# do some stuff here
return _some_op
@job
def some_job():
some_op("special_type")()
Maybe you could use a similar pattern to get the flixibility you need when generating your shell ops.Shriram Holla
05/31/2022, 2:15 PM