MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / clean_stopped_task

Method clean_stopped_task

lightx2v/utils/service_utils.py:77–83  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

75
76 @classmethod
77 def clean_stopped_task(cls):
78 with cls._lock:
79 if cls._current_task:
80 message = cls._current_task["message"]
81 error = "Task stopped by user"
82 cls._result_store[message.task_id] = {"success": False, "message": message, "start_time": cls._current_task["start_time"], "error": error}
83 cls._current_task = None
84
85 @classmethod
86 def get_status_task_id(cls, task_id: str):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected