MCPcopy
hub / github.com/tornadoweb/tornado / task_id

Function task_id

tornado/process.py:179–185  ·  view source on GitHub ↗

Returns the current task id, if any. Returns None if this process was not created by `fork_processes`.

()

Source from the content-addressed store, hash-verified

177
178
179def task_id() -> Optional[int]:
180 """Returns the current task id, if any.
181
182 Returns None if this process was not created by `fork_processes`.
183 """
184 global _task_id
185 return _task_id
186
187
188class Subprocess:

Callers 2

tearDownMethod · 0.90
test_multi_processMethod · 0.90

Calls

no outgoing calls

Tested by 2

tearDownMethod · 0.72
test_multi_processMethod · 0.72