MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / poll

Method poll

scripts/test-impact/profile_text_parser.py:82–90  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

80 self.work = 0
81
82 def poll(self):
83 self.work = 0
84 if self.cancel is None:
85 return
86 answer = self.cancel(self.context)
87 if type(answer) is not bool:
88 raise InvalidArgumentError("cancel must return bool")
89 if answer:
90 raise ParseCancelledError("profile parsing cancelled")
91
92 def step(self):
93 self.work += 1

Callers 5

stepMethod · 0.95
recordMethod · 0.45
recordsMethod · 0.45
_sorted_uniqueFunction · 0.45
parse_profile_textFunction · 0.45

Calls 4

ParseCancelledErrorClass · 0.85
cancelMethod · 0.80
typeFunction · 0.50

Tested by

no test coverage detected