2025-02-09 20:30:19 +08:00
|
|
|
from datetime import datetime
|
|
|
|
|
|
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
|
|
2025-03-30 18:34:48 -07:00
|
|
|
from skyvern.schemas.runs import RunType
|
2025-02-09 20:30:19 +08:00
|
|
|
|
|
|
|
|
|
2025-03-30 18:41:24 -07:00
|
|
|
class Run(BaseModel):
|
2025-02-09 20:30:19 +08:00
|
|
|
model_config = ConfigDict(from_attributes=True)
|
|
|
|
|
|
|
|
|
|
task_run_id: str
|
2025-03-30 18:34:48 -07:00
|
|
|
task_run_type: RunType
|
2025-02-09 20:30:19 +08:00
|
|
|
run_id: str
|
|
|
|
|
organization_id: str | None = None
|
|
|
|
|
title: str | None = None
|
|
|
|
|
url: str | None = None
|
|
|
|
|
cached: bool = False
|
2025-12-09 15:23:47 -08:00
|
|
|
# Compute cost tracking fields
|
|
|
|
|
instance_type: str | None = None
|
|
|
|
|
vcpu_millicores: int | None = None
|
|
|
|
|
duration_ms: int | None = None
|
|
|
|
|
compute_cost: float | None = None
|
2025-02-09 20:30:19 +08:00
|
|
|
created_at: datetime
|
|
|
|
|
modified_at: datetime
|