conductor

CI task system
git clone git://git.finwo.net/app/conductor
Log | Files | Refs | README | LICENSE

commit 3b3a732c7d824ea2ea8eef14efbeacc649e38712
parent 9c25486b4aad0fe73f2ea3a02d3ccd327f82a069
Author: finwo <finwo@pm.me>
Date:   Sun, 27 Sep 2026 20:30:17 +0200

Honour scheduler.max_attempts instead of hardcoding a single attempt

Diffstat:
Mconductor.example.yaml | 2+-
Msrc/conductor/scheduler.js | 2+-
Msrc/lib/config.js | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/conductor.example.yaml b/conductor.example.yaml @@ -115,4 +115,4 @@ scheduler: heartbeat_timeout: 120 reap_interval: 30 default_task_timeout: 3600 - max_attempts: 3 + max_attempts: 1 diff --git a/src/conductor/scheduler.js b/src/conductor/scheduler.js @@ -164,7 +164,7 @@ export function createScheduler({ const pipeline = compilePipeline(found.text, { source: found.path, defaultTimeout: cfg.scheduler.default_task_timeout, - defaultAttempts: 1, + defaultAttempts: cfg.scheduler.max_attempts, ref: ref ?? '', }); diff --git a/src/lib/config.js b/src/lib/config.js @@ -110,7 +110,7 @@ const DEFAULTS = { heartbeat_timeout: 120, reap_interval: 30, default_task_timeout: 3600, - max_attempts: 3, + max_attempts: 1, }, };