MCPcopy
hub / github.com/pyload/pyload / getTaskByID

Method getTaskByID

module/CaptchaManager.py:54–61  ·  view source on GitHub ↗
(self, tid)

Source from the content-addressed store, hash-verified

52 return None
53
54 def getTaskByID(self, tid):
55 self.lock.acquire()
56 for task in self.tasks:
57 if task.id == str(tid): # Task ids are strings
58 self.lock.release()
59 return task
60 self.lock.release()
61 return None
62
63 def handleCaptcha(self, task, timeout):
64 cli = self.core.isClientConnected()

Callers 3

getCaptchaTaskStatusMethod · 0.80
setCaptchaResultMethod · 0.80
event_cMethod · 0.80

Calls 2

acquireMethod · 0.80
releaseMethod · 0.45

Tested by

no test coverage detected