Jeremy Yeo
09/02/2021, 8:24 PMdirs = ["dir1", "dir2", "dir3"]
commands = [f"rm -rf {d}" for d in dirs]
names = [{"name": f"removing dir {d}"} for d in dirs]
shell = ShellTask()
with Flow as f:
shell.map(command = commands, task_args={"name": "removing dir"})
# shell.map(command = commands, task_args={"name": dirs}) # not working
# shell.map(command = commands, task_args=names) # not working
f.run()
Possibly not getting some syntax right. Thanks.Chris White
task_run_name
kwarg on tasksZanie
Jeremy Yeo
09/02/2021, 8:58 PMdirs = ["dir1", "dir2", "dir3"]
commands = [f"rm -rf {d}" for d in dirs]
shell = ShellTask(task_run_name="removing dir {command}")
with Flow as f:
shell.map(command = commands)
f.run()
Ah interesting... should I expect something like above to work? Doesn't seem to quite do it πChris White
Jeremy Yeo
09/02/2021, 9:06 PMKevin Kho