MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeWiki / fail

Method fail

codewiki/cli/models/job.py:95–99  ·  view source on GitHub ↗

Mark job as failed.

(self, error_message: str)

Source from the content-addressed store, hash-verified

93 self.timestamp_end = datetime.now().isoformat()
94
95 def fail(self, error_message: str):
96 """Mark job as failed."""
97 self.status = JobStatus.FAILED
98 self.error_message = error_message
99 self.timestamp_end = datetime.now().isoformat()
100
101 def to_dict(self) -> Dict[str, Any]:
102 """Convert to dictionary for JSON serialization."""

Callers 1

generateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected