MCPcopy
hub / github.com/celery/celery / emit_banner

Method emit_banner

celery/apps/worker.py:168–178  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

166 )
167
168 def emit_banner(self):
169 # Dump configuration to screen so we have some basic information
170 # for when users sends bug reports.
171 use_image = term.supports_images()
172 if use_image:
173 print(term.imgcat(static.logo()))
174 print(safe_str(''.join([
175 str(self.colored.cyan(
176 ' \n', self.startup_info(artlines=not use_image))),
177 str(self.colored.reset(self.extra_info() or '')),
178 ])), file=sys.__stdout__, flush=True)
179
180 def on_consumer_ready(self, consumer):
181 signals.worker_ready.send(sender=consumer)

Callers 1

on_startMethod · 0.95

Calls 5

startup_infoMethod · 0.95
extra_infoMethod · 0.95
cyanMethod · 0.80
joinMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected