mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-11-27 23:58:47 +00:00
* feat(studio): enable native Codex chat in proactive workspace * feat(studio): add Codex session history and proactive messages * feat(resource): add dated resource retention * feat(jobs): track in-memory execution and step status Unify cumulative invocation counts with optional execution records, expose job_status, and track nested step failures. Remove redundant proactive timing and share manual/cron step definitions. * fix(codex): anchor turn usage before context compaction * fix: recover interrupted sessions and job failure status
21 lines
639 B
Python
21 lines
639 B
Python
"""Application-lifetime job execution snapshots."""
|
|
|
|
from datetime import datetime
|
|
from typing import Literal
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
JobExecutionStatus = Literal["running", "succeeded", "failed", "stopped", "cancelled"]
|
|
|
|
|
|
class JobExecution(BaseModel):
|
|
"""One execution; step paths describe the currently active nested call."""
|
|
|
|
id: int
|
|
started_at: datetime
|
|
finished_at: datetime | None = None
|
|
status: JobExecutionStatus = "running"
|
|
error: str | None = None
|
|
step_path: list[str] = Field(default_factory=list)
|
|
step_started_at: datetime | None = None
|
|
failed_step: list[str] | None = None
|