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

Function create_task

s12_task_system/code.py:66–77  ·  view source on GitHub ↗
(subject: str, description: str = "",
                blockedBy: list[str] | None = None)

Source from the content-addressed store, hash-verified

64
65
66def create_task(subject: str, description: str = "",
67 blockedBy: list[str] | None = None) -> Task:
68 task = Task(
69 id=f"task_{int(time.time())}_{random.randint(0, 9999):04d}",
70 subject=subject,
71 description=description,
72 status="pending",
73 owner=None,
74 blockedBy=blockedBy or [],
75 )
76 save_task(task)
77 return task
78
79
80def save_task(task: Task):

Callers 1

run_create_taskFunction · 0.70

Calls 2

TaskClass · 0.70
save_taskFunction · 0.70

Tested by

no test coverage detected