MCPcopy Index your code
hub / github.com/shareAI-lab/learn-claude-code / worker

Function worker

s16_team_protocols/code.py:294–298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

292 cmd = block.input.get("command", block.name)
293
294 def worker():
295 result = execute_tool(block)
296 with background_lock:
297 background_tasks[bg_id]["status"] = "completed"
298 background_results[bg_id] = result
299
300 with background_lock:
301 background_tasks[bg_id] = {

Callers

nothing calls this directly

Calls 1

execute_toolFunction · 0.70

Tested by

no test coverage detected