fix(#1220): remove default 180s timeout from bash run — no timeout unless explicitly set

This commit is contained in:
damocles 2026-06-03 22:30:43 +02:00 committed by mara
commit 280ae23c0c
3 changed files with 46 additions and 29 deletions

View file

@ -25,7 +25,11 @@ pub enum TaskStatus {
pub struct TaskFile {
pub id: String,
pub cmd: String,
pub timeout_secs: u64,
/// Kill timeout in seconds. `None` means no timeout — task runs until
/// natural exit. Old task files with a numeric value are still readable
/// (serde coerces `u64` → `Some(u64)` is handled by the caller).
#[serde(default, skip_serializing_if = "Option::is_none")]
pub timeout_secs: Option<u64>,
pub status: TaskStatus,
pub created_at: i64,
#[serde(default, skip_serializing_if = "Option::is_none")]