Garret Cook
01/02/2024, 4:08 AMt1 = ShellTask(
name="task_1",
debug=True,
script="""
set -ex
set -o pipefail #Bash specific, and fails
echo "Hey there! Let's run some bash scripts using Flyte's ShellTask."
""",
inputs=kwtypes(x=FlyteFile),
output_locs=[
OutputLocation(var="i", var_type=FlyteFile, location="{inputs.x}")
],
)
I get the following output from the web interface after the task tries to run:
/bin/sh: 4: set: Illegal option -o pipefailKetan (kumare3)
Garret Cook
01/02/2024, 5:37 PMSamhita Alla
executable
to `ShellTask`: https://github.com/flyteorg/flytekit/pull/2084. that should let you set the type of the shell you need. you can just say executable="/bin/bash"
and it should work.