MCPcopy Create free account
hub / github.com/coleifer/huey / __init__

Method __init__

huey/api.py:1061–1065  ·  view source on GitHub ↗
(self, huey, name)

Source from the content-addressed store, hash-verified

1059 details see :py:meth:`Huey.lock_task`.
1060 """
1061 def __init__(self, huey, name):
1062 self._huey = huey
1063 self._name = name
1064 self._key = '%s.lock.%s' % (self._huey.name, self._name)
1065 self._huey._locks.add(self._key)
1066
1067 def is_locked(self):
1068 return self._huey.storage.has_data_for_key(self._key)

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected