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

Function worker

s13_background_tasks/code.py:351–355  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

349 cmd = block.input.get("command", block.name)
350
351 def worker():
352 result = execute_tool(block)
353 with background_lock:
354 background_tasks[bg_id]["status"] = "completed"
355 background_results[bg_id] = result
356
357 with background_lock:
358 background_tasks[bg_id] = {

Callers

nothing calls this directly

Calls 1

execute_toolFunction · 0.70

Tested by

no test coverage detected