fix: use "idle timeout" as task auto-pause reason (#22287)

This commit is contained in:
Danielle Maywood
2026-02-24 16:45:56 +00:00
committed by GitHub
parent 20797347b4
commit 974ca3eda6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -500,7 +500,7 @@ func (e *Executor) runOnce(t time.Time) Stats {
"task": task.Name,
"task_id": task.ID.String(),
"workspace": ws.Name,
"pause_reason": "inactivity exceeded the dormancy threshold",
"pause_reason": "idle timeout",
},
"lifecycle_executor",
ws.ID, ws.OwnerID, ws.OrganizationID,
+1 -1
View File
@@ -2082,6 +2082,6 @@ func TestExecutorTaskWorkspace(t *testing.T) {
require.Equal(t, task.Name, sent[0].Labels["task"])
require.Equal(t, task.ID.String(), sent[0].Labels["task_id"])
require.Equal(t, workspace.Name, sent[0].Labels["workspace"])
require.Equal(t, "inactivity exceeded the dormancy threshold", sent[0].Labels["pause_reason"])
require.Equal(t, "idle timeout", sent[0].Labels["pause_reason"])
})
}