fix(agent): apply agent settings as they are when jobs are handed out #175

Merged
Sebi merged 1 commits from fix/agent-settings-after-poll into main 2026-11-29 15:40:23 +00:00
1 Commits
Author SHA1 Message Date
Sebastian UnterschützandClaude Opus 5.5 4246e37384 fix(agent): apply agent settings as they are when jobs are handed out
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / test (pull_request) Successful in 8m51s
ci / lint (pull_request) Successful in 10m46s
ci / build (pull_request) Successful in 10m26s
ci / image (pull_request) Successful in 5m8s
The jobs endpoint read the agent, and with it allow_private, before its
long poll of up to 20 seconds, so jobs handed out afterwards could carry
a setting changed in the meantime and the change only applied a poll
later. It now reads the agent again when the poll returns jobs.

TestCheckerNetwork also waits for two runs at most: the next run after a
monitor's first one is on its phase now, up to one and a half intervals
later.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-29 16:37:08 +01:00