Display bootsteps graph.
(ctx)
| 18 | @graph.command(cls=CeleryCommand, context_settings={'allow_extra_args': True}) |
| 19 | @click.pass_context |
| 20 | def bootsteps(ctx): |
| 21 | """Display bootsteps graph.""" |
| 22 | worker = ctx.obj.app.WorkController() |
| 23 | include = {arg.lower() for arg in ctx.args or ['worker', 'consumer']} |
| 24 | if 'worker' in include: |
| 25 | worker_graph = worker.blueprint.graph |
| 26 | if 'consumer' in include: |
| 27 | worker.blueprint.connect_with(worker.consumer.blueprint) |
| 28 | else: |
| 29 | worker_graph = worker.consumer.blueprint.graph |
| 30 | worker_graph.to_dot(sys.stdout) |
| 31 | |
| 32 | |
| 33 | @graph.command(cls=CeleryCommand, context_settings={'allow_extra_args': True}) |
nothing calls this directly
no test coverage detected
searching dependent graphs…