Ignas Kizelevičius
03/23/2023, 4:42 PMop
inside another op
? I want to use shell_op
inside my custom op
jamie
03/23/2023, 4:52 PM@op
def before_shell_op():
# do computation
return value
@op
def after_shell_op(x):
# do computation on x
@job
def my_job():
value = before_shell_op()
shell_out = shell_op(value)
after_shell_op(shell_out)
Ignas Kizelevičius
03/23/2023, 5:10 PMjamie
03/23/2023, 5:19 PMsubprocess
rather than using the shell_op
Ignas Kizelevičius
03/23/2023, 5:29 PM