Skip to Content
API 參考狀態列舉值

狀態列舉值

以下字串值取自 src/schemas/enums.py(除另註明)。前端渲染或條件判斷時,以這些精確字面值為準。

執行 SandboxRunState

queuedstartingrunningcancel_requestedcompletedcustomer_failedplatform_failedcancelled

建置嘗試 SandboxBuildAttemptState

validation_queuedvalidatingbuild_queuedbuildingverifyingcompletedcustomer_failedplatform_failedcancel_requestedcancellingcancelled

環境版本 SandboxEnvironmentVersionState

draftbuild_queuedbuildingquarantinedverifyingverifiedregional_provisioningreadyretryable_failedrejectedabandonedblockedsupersededarchivedprovisioning_blocked

任務版本 SandboxTaskVersionState

draftpublishedarchived(另有 content_state;menu/可執行要求 content_state == "active"

終態類別 SandboxTerminalClass / SandboxBuildTerminalClass

completedcustomer_failedplatform_failedcancelled

資源規格 SandboxResourceProfile

standardperformancelargexlarge

建置規格 SandboxBuildProfile

standardfastlarge

Scope 類 SandboxOwnerScope / SandboxShareTargetKind / SandboxConsumerScope

chatroomdepartmentcompany

環境擁有者 SandboxEnvironmentOwnerKind

system_curatedcompany

Principal SandboxPrincipalType / 認證 SandboxAuthMethod

usersocial_media_clientjwtapi_key

生命週期篩選 SandboxLifecycleFilter

activeretiredall(列表查詢參數;多數預設 activelist_task_shares 預設 all

Agent 提案 SandboxProposalState

preparedcommittingcommittedsupersededcancelledexpiredfailed

Secret 操作 SandboxSecretOperationState

preparedapplyingreconcilingappliedrevokingterminal

通知事件 SandboxNotificationEvent

build_readybuild_failedbuild_cancelledrun_terminalsecurity_finding_discoveredsecurity_finding_resolvedsecurity_finding_reappearedsecurity_finding_blockedsecurity_exception_grantedsecurity_exception_revokedsecurity_exception_expired


內部物件狀態(間接出現在回應)

取自 src/components/sandbox/storage.py。前端最常見的是產出物 deletion_state 與 run content state

  • object_kindcontextinputoutputlogartifact_bundlereport
  • Owned Object deletion_stateactivedelete_pendingdeletedtombstoned(非 active 的產出物 download → 404)
  • 上傳模式single_partmultipart(控制面)
  • Session 狀態initiatinguploadingcompletingcompletedabort_pendingaborted(控制面)
  • Lease 狀態uploadingqueuedactive_transferredrelease_pendingreleased(控制面;佔槽狀態 uploading/queued

數值上限(src/components/sandbox/constants.py

MAX_PAGE_SIZE=100DEFAULT_PAGE_SIZE=20;輸入/腳本 JSON ≤1 MiB;MAX_JSON_DEPTH=64MAX_JSON_NODES=100000;env ≤100 名稱、每項 ≤64 KiB;DEFAULT_WORK_TIMEOUT_SECONDS=1800、最大 work 逾時 ≈7 天;MAX_STATUS_WAIT_SECONDS=60MAX_ARTIFACT_FILES=1000;內容保留 1..365 天、映像保留 1..90 天。

Last updated on