luigi.tools.deps_tree module¶
This module parses commands exactly the same as the luigi task runner. You must specify the module, the task and task parameters. Instead of executing a task, this module prints the significant parameters and state of the task and its dependencies in a tree format. Use this to visualize the execution plan in the terminal.
$ luigi-deps-tree --module foo_complex examples.Foo
...
└─--[Foo-{} (PENDING)]
|---[Bar-{'num': '0'} (PENDING)]
| |---[Bar-{'num': '4'} (PENDING)]
| └─--[Bar-{'num': '5'} (PENDING)]
|---[Bar-{'num': '1'} (PENDING)]
└─--[Bar-{'num': '2'} (PENDING)]
└─--[Bar-{'num': '6'} (PENDING)]
|---[Bar-{'num': '7'} (PENDING)]
| |---[Bar-{'num': '9'} (PENDING)]
| └─--[Bar-{'num': '10'} (PENDING)]
| └─--[Bar-{'num': '11'} (PENDING)]
└─--[Bar-{'num': '8'} (PENDING)]
└─--[Bar-{'num': '12'} (PENDING)]
- class luigi.tools.deps_tree.bcolors[source]¶
Bases:
object
colored output for task status
- OKBLUE = '\x1b[94m'¶
- OKGREEN = '\x1b[92m'¶
- ENDC = '\x1b[0m'¶