(self, **kwargs)
| 196 | return Response(message=json.dumps([serialize_task(task) for task in tasks], indent=4), break_loop=False) |
| 197 | |
| 198 | async def show_task(self, **kwargs) -> Response: |
| 199 | task_uuid: str = kwargs.get("uuid", "") |
| 200 | if not task_uuid: |
| 201 | return Response(message="Task UUID is required", break_loop=False) |
| 202 | task: ScheduledTask | AdHocTask | PlannedTask | None = TaskScheduler.get().get_task_by_uuid(task_uuid) |
| 203 | if not task: |
| 204 | return Response(message=f"Task not found: {task_uuid}", break_loop=False) |
| 205 | return Response(message=json.dumps(serialize_task(task), indent=4), break_loop=False) |
| 206 | |
| 207 | async def run_task(self, **kwargs) -> Response: |
| 208 | task_uuid: str = kwargs.get("uuid", "") |
no test coverage detected