fix(#1220): remove default 180s timeout from bash run — no timeout unless explicitly set
This commit is contained in:
parent
4fbe9e4927
commit
280ae23c0c
3 changed files with 46 additions and 29 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Reference in a new issue