Daniel Ahn
03/05/2021, 6:16 PMShellTask
, but it needs the location of the file i'm submitting with. Right now, I've hardcoded the location in my file, and switching to that location with helper_script
option on ShellTask
Daniel Ahn
03/05/2021, 6:21 PMfrom prefect import task, Flow, Parameter
from prefect.tasks.shell import ShellTask
workingPath = "<location where pi.py lives>"
runPiSparkJob = ShellTask(helper_script=f"cd {workingPath}")
with Flow("area of circle") as flow:
runPiSparkJob(command='spark-submit pi.py 10')
Daniel Ahn
03/05/2021, 6:22 PMDaniel Ahn
03/05/2021, 6:24 PMnicholas
import_paths
flag, which is a list of strings refs to import locations you want flows run through that agent to be able to accessDaniel Ahn
03/08/2021, 12:39 PM