Download src/cron/execution-error-constants.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 831 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/cron/execution-error-constants.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/cron/execution-error-constants.ts
-
curl -L -o execution-error-constants.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/cron/execution-error-constants.ts
831 Bytes
| /** Stable cron execution error text shared by runtime and ledger codecs. */ | |
| export const CRON_JOB_EXECUTION_TIMEOUT_ERROR = "cron: job execution timed out"; | |
| export const CRON_SETUP_TIMEOUT_ERROR = "cron: isolated agent setup timed out before runner start"; | |
| export const CRON_PRE_EXECUTION_TIMEOUT_ERROR = | |
| "cron: isolated agent run stalled before execution start"; | |
| const CRON_TIMEOUT_ERROR_PREFIXES = [ | |
| CRON_JOB_EXECUTION_TIMEOUT_ERROR, | |
| CRON_SETUP_TIMEOUT_ERROR, | |
| CRON_PRE_EXECUTION_TIMEOUT_ERROR, | |
| ] as const; | |
| /** Recognizes watchdog timeouts without loading agent or execution-phase runtime. */ | |
| export function isCronTimeoutErrorText(error: unknown): error is string { | |
| return ( | |
| typeof error === "string" && | |
| CRON_TIMEOUT_ERROR_PREFIXES.some((prefix) => error === prefix || error.startsWith(`${prefix} `)) | |
| ); | |
| } | |