Pieter Custers
05/19/2022, 5:52 AMcreate_shell_command_op
to submit a Spark job. Since we want to create the command dynamically during execution we end up using shell_op
, however the documentation is missing there.
Is this the way to go? Any chance there is documentation of the shell_op
?
Thanks in advance to the always helpful Dagster team 🙏johann
05/19/2022, 1:48 PMshell_op
is here: https://github.com/dagster-io/dagster/blob/7207a6e2dc3fd3a6e9705ca361b9f5a18204c1e[…]/python_modules/libraries/dagster-shell/dagster_shell/solids.pyshell_command
as an input, and env
, cwd
, etc. as configPieter Custers
05/20/2022, 9:08 AMjohann
05/20/2022, 2:27 PMDagster Bot
05/20/2022, 2:27 PMPieter Custers
05/25/2022, 12:03 PMLucia Ambrogi
05/25/2022, 12:19 PMshell_op
should be used? E.g. how the context
arg should be defined. To give you a bit of context: I need to create a job that runs a shell command, and the shell command must be built at execution time based on parameters from a sensorjohann
05/26/2022, 2:43 PMfrom dagster_shell import shell_op
from dagster import job, op
@op
def get_shell_cmd_op():
return 'echo "hello world"'
@job
def shell_job():
shell_op(get_shell_cmd_op())
Lucia Ambrogi
05/30/2022, 2:54 PM