Semaphore UI v2.19.16

v2.19.16
Added 2
  • Runners can be configured to set how often they check the server for new jobs via the runner.check_interval_seconds config option
  • The runner check interval can be set with the SEMAPHORE_RUNNER_CHECK_INTERVAL_SECONDS environment variable
Changed 2
  • Runner job-check interval defaults to 1 second, and zero, negative, or out-of-range values fall back to the default
  • Runner progress reporting and heartbeat continue to run once per second regardless of the configured check interval

From Semaphore UI

Configurable runner check interval

Runners can now be told how often to ask the server for new jobs. Until now the interval was hard-coded to 1 second, which on installations with many runners produced a noticeable amount of request traffic.

New option in the runner section of the runner config:

{
  "runner": {
    "check_interval_seconds": 5
  }
}

Or via environment variable:

SEMAPHORE_RUNNER_CHECK_INTERVAL_SECONDS=5

Default: 1 second, so existing installations behave exactly as before. Values of 0, negative values, or values too large to represent as a duration fall back to the default.

What changes and what does not. Only the check for new jobs honours the configured interval. The runner's progress report, which also serves as its heartbeat, keeps running once per second. Raising the check interval therefore does not affect when the server marks a runner offline. Jobs will start up to check_interval_seconds later than before, so pick a value that matches how quickly you need new tasks to be picked up.

Affected components: runner (semaphore runner start), config schema. No database migration, no changes to the server or the web interface.

View original

Upgraded? How did it go?

Discussion