MCPcopy Create free account
hub / github.com/celery/celery / current_process_index

Function current_process_index

celery/utils/log.py:293–295  ·  view source on GitHub ↗
(base=1)

Source from the content-addressed store, hash-verified

291
292
293def current_process_index(base=1):
294 index = getattr(current_process(), 'index', None)
295 return index + base if index is not None else index

Callers 1

_fmt_process_indexFunction · 0.85

Calls 1

current_processFunction · 0.85

Tested by

no test coverage detected