flowchart TD
getting_started.basic_example.TaskA[TaskA]
click getting_started.basic_example.TaskA href "" "getting_started.basic_example.TaskA"
Source code in examples/getting_started/basic_example.py
| class TaskA(CoSyLuigiTask):
def output(self):
return {"a_artifact": luigi.LocalTarget("output/task_a_output.txt")}
def run(self):
with self.output()["a_artifact"].open("w") as f:
f.write("Task A completed")
|
output()
Source code in examples/getting_started/basic_example.py
| def output(self):
return {"a_artifact": luigi.LocalTarget("output/task_a_output.txt")}
|
run()
Source code in examples/getting_started/basic_example.py
| def run(self):
with self.output()["a_artifact"].open("w") as f:
f.write("Task A completed")
|