File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ no-color=true
289
289
disconnect-after-idle-timeout=${BUILDKITE_SCALE_IN_IDLE_PERIOD}
290
290
disconnect-after-job=${BUILDKITE_TERMINATE_INSTANCE_AFTER_JOB}
291
291
tracing-backend=${BUILDKITE_AGENT_TRACING_BACKEND}
292
- cancel-grace-period=60
292
+ cancel-grace-period=${BUILDKITE_AGENT_CANCEL_GRACE_PERIOD}
293
293
EOF
294
294
295
295
if [[ " ${BUILDKITE_ENV_FILE_URL} " != " " ]]; then
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ Metadata:
43
43
- BuildkiteAgentExperiments
44
44
- BuildkiteAgentEnableGitMirrors
45
45
- BuildkiteAgentTracingBackend
46
+ - BuildkiteAgentCancelGracePeriod
46
47
- BuildkiteTerminateInstanceAfterJob
47
48
- BuildkiteAdditionalSudoPermissions
48
49
- BuildkiteWindowsAdministrator
@@ -194,6 +195,12 @@ Parameters:
194
195
- " opentelemetry"
195
196
Default : " "
196
197
198
+ BuildkiteAgentCancelGracePeriod :
199
+ Description : The number of seconds a canceled or timed out job is given to gracefully terminate and upload its artifacts.
200
+ Type : Number
201
+ Default : 60
202
+ MinValue : 1
203
+
197
204
BuildkiteTerminateInstanceAfterJob :
198
205
Description : Set to "true" to terminate the instance after a job has completed.
199
206
Type : String
@@ -1230,6 +1237,7 @@ Resources:
1230
1237
BUILDKITE_AGENT_EXPERIMENTS="${BuildkiteAgentExperiments}" \
1231
1238
BUILDKITE_AGENT_TRACING_BACKEND="${BuildkiteAgentTracingBackend}" \
1232
1239
BUILDKITE_AGENT_RELEASE="${BuildkiteAgentRelease}" \
1240
+ BUILDKITE_AGENT_CANCEL_GRACE_PERIOD="${BuildkiteAgentCancelGracePeriod}" \
1233
1241
BUILDKITE_QUEUE="${BuildkiteQueue}" \
1234
1242
BUILDKITE_AGENT_ENABLE_GIT_MIRRORS="${BuildkiteAgentEnableGitMirrors}" \
1235
1243
BUILDKITE_ELASTIC_BOOTSTRAP_SCRIPT="${BootstrapScriptUrl}" \
You can’t perform that action at this time.
0 commit comments