MCPcopy
hub / github.com/apenwarr/redo / has_token

Function has_token

redo/jobserver.py:341–345  ·  view source on GitHub ↗

Returns true if this process has a job token.

()

Source from the content-addressed store, hash-verified

339
340
341def has_token():
342 """Returns true if this process has a job token."""
343 assert _mytokens >= 0
344 if _mytokens >= 1:
345 return True
346
347
348def _ensure_token(reason, max_delay=None):

Callers 3

_waitFunction · 0.85
ensure_token_or_cheatFunction · 0.85
force_return_tokensFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected