Hello-QM/catgo-LRG / server/catgo/workflow
catgo-workflow
VerifiedCreate and manage computational chemistry workflows with CatGo. Supports VASP, CP2K, ORCA, MLP, LAMMPS. Build OER/HER/CO2RR workflows, geometry optimization, frequency analysis, Gibbs energy calculations.
state_map.py
View on GitHub# server/catgo/workflow/state_map.py
"""Map engine 14-state TaskState to frontend 6-state display status.
Engine states: WAITING, READY, GENERATING, UPLOADING, SUBMITTED, QUEUED,
RUNNING, COMPLETED_REMOTE, COLLECTING, COMPLETED, FAILED,
REMOTE_ERROR, PAUSED, CANCELLED
Frontend statuses (STATUS_COLORS in workflow-types.ts):
pending, queued, running, completed, not_converged, failed, paused
"""
from __future__ import annotations
_ENGINE_TO_FRONTEND: dict[str, str] = {
"WAITING": "pending",
"READY": "pending",
"PENDING_REVIEW": "pending_review",
"GENERATING": "running",
"UPLOADING": "running",
"SUBMITTED": "queued",
"QUEUED": "queued",
"RUNNING": "running",
"COMPLETED_REMOTE": "running",
"COLLECTING": "running",
"COMPLETED": "completed",
"FAILED": "failed",
"REMOTE_ERROR": "failed",
"PAUSED": "paused",
"CANCELLED": "failed",
"SKIPPED": "skipped",
}
_FRONTEND_TO_ENGINE: dict[str, str] = {
"pending": "WAITING",
"queued": "QUEUED",
"running": "RUNNING",
"completed": "COMPLETED",
"failed": "FAILED",
"paused": "PAUSED",
"not_converged": "COMPLETED",
}
def v2_to_v1_status(engine_status: str) -> str:
"""Convert engine TaskState string to frontend display status."""
return _ENGINE_TO_FRONTEND.get(engine_status, engine_status)
def v1_to_v2_status(frontend_status: str) -> str:
"""Convert frontend display status to engine TaskState string."""
return _FRONTEND_TO_ENGINE.get(frontend_status, frontend_status.upper())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| planning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| screenpipethedotmack/claude-memSearch screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| contact-widgetnexu-io/open-designSelf-contained floating chat widget with welcome screen, social links, meeting button, and message input. Single HTML file, zero dependencies. | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |
| meeting-notesnexu-io/open-designMeeting notes page — title bar with attendees, agenda checklist, decisions block, action items table with owners + dates, and a "next meeting" footer. Use when the brief mentions "meeting notes", "minutes", "1:1 notes", "all-hands recap", or "会议纪要". | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |