buildkite / buildkite/agent

Add a timeout flag to agents

Open
#1,062 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
1.1k
Forks
378
Avg merge
2d 6h
Merged PRs (30d)
74

Description

We are experiencing some issues where a job may sometimes hang and because of this our stack ends up not scaled down during the night.

We can add `timeout_in_minutes` in individual steps, but this being opt-in is not ideal. What we'd really want is to impose a hard global limit of the form "no job can run for more than XX minutes". Doing this at the agent level probably makes more sense, since we could then use different queues for different hard limits if we wanted to.

I see there was a PR trying to implement this (#788) but unfortunately it was never finished.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the issue requirements and the unfinished PR #788 to understand the prior approach and remaining design questions. Define how an agent-level timeout should apply across jobs and how completion can be verified; done means a configurable hard limit prevents jobs from running beyond the selected number of minutes.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
ci-cd
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.