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

Function create_task

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

Source from the content-addressed store, hash-verified

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