MCPcopy
hub / github.com/celery/celery / bootsteps

Function bootsteps

celery/bin/graph.py:20–30  ·  view source on GitHub ↗

Display bootsteps graph.

(ctx)

Source from the content-addressed store, hash-verified

18@graph.command(cls=CeleryCommand, context_settings={'allow_extra_args': True})
19@click.pass_context
20def 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})

Callers

nothing calls this directly

Calls 3

WorkControllerMethod · 0.80
connect_withMethod · 0.80
to_dotMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…