Skip to content

Listener stops polling broker after first job's Busy→Online transition (2.334.0, Windows, V2 flow) #4444

Closed

Description

@darylpatino

Hitting a reproducible hang on a self-hosted Windows runner. After the
first job completes following a service start, the listener stops
polling the broker entirely. The process stays alive and the runner
shows "Idle" in the UI, but no new GET /message requests ever go
out, so queued jobs sit there until I restart the service.

Happened three times in the last 22 hours. Same log signature every
time — the last BrokerMessageListener line before the silence is:

Get messages has been cancelled using local token source. Continue to get messages with new status.

…and then nothing. OAuth token refreshes keep ticking over on schedule,
so credentials aren't the problem. Restarting the service clears it,
and the next job runs fine — until it finishes, and we're back here.

Runner: 2.334.0 (commit f1995ede5d885c997d13d8eca5467c4ce97fe69c)
OS: Windows Server 2022 Standard, x64, installed as a service
Flow: V2 (useV2Flow: true, serverUrlV2: https://broker.actions.githubusercontent.com/)
Proxy: none (HostContext: No proxy settings were found based on environmental variables)

To reproduce:

  1. Start the runner service
  2. Run any job — it succeeds
  3. Queue another job — runner never picks it up, stays "Idle" in UI

Log excerpt from one of the occurrences:

[2026-05-21 14:42:58Z INFO Listener] Version: 2.334.0
[2026-05-21 14:43:01Z INFO BrokerMessageListener] Session created.
[2026-05-21 14:47:16Z INFO BrokerMessageListener] Received job status event. JobState: Busy
[2026-05-21 14:48:13Z INFO JobDispatcher] Worker finished for job 25a4d756-... Code: 100
[2026-05-21 14:48:13Z INFO JobDispatcher] finish job request ... with result: Succeeded
[2026-05-21 14:48:13Z INFO BrokerMessageListener] Received job status event. JobState: Online
[2026-05-21 14:48:13Z INFO BrokerMessageListener] Get messages has been cancelled using local token source. Continue to get messages with new status.
<-- 73 minutes of silence, no broker polls -->
[2026-05-21 16:01:49Z INFO Runner] Received Ctrl-C signal, stop Runner.Listener and Runner.Worker.

This host was previously running sessions 6+ days at a time without
issue. Started seeing it mid-May.

Searched existing issues for the cancellation log line and didn't find
a match. #186811 (community) describes a similar UI-side symptom but
without listener logs, and #4312 / #1377 / #3526 look like different
root causes (worker hang, older versions, broker outage).

Happy to attach the full _diag logs or run anything diagnostic if it
helps.

Activity

  1. jcdrive commented on Aug 25, 2026

    @jcdrive

    Hitting this issue as well on Linux.

  2. jcdrive commented on Aug 25, 2026

    @jcdrive

    Why is this marked as completed, just curious?

  3. menarzullayev commented on Sep 17, 2026

    @menarzullayev

    We hit this on 2.337.0, the latest release, which came out the day after this issue was closed. Linux (the runner runs in a Docker container on Docker Desktop with the WSL2 backend), V2 broker flow, so it does not look fixed.

    The signature matches the report. When a job ended (ours had been cancelled by timeout-minutes), the listener logged:

    INFO BrokerMessageListener] Received job status event. JobState: Online
    WARN GitHubActionsService] GET request to https://broker.actions.githubusercontent.com/message?sessionId=…&status=Busy&runnerVersion=2.337.0… has been cancelled.
    ERR  BrokerServer] System.Net.Sockets.SocketException (125): Operation canceled
    WARN BrokerServer] Back off 14.469 seconds before next retry. 4 attempt left.
    INFO BrokerMessageListener] Get messages has been cancelled using local token source. Continue to get messages with new status.
    

    The listener then logged nothing for 7 minutes. The REST API showed the runner online with busy: false, four jobs asking for its labels stayed queued, and no Runner.Worker process was left, only Runner.Listener.

    • Only after the cancelled job. Successful jobs on the same runner, before and after, made the Busy → Online transition normally, and we could not reproduce the stall on demand.
    • What woke it without a restart. Changing the runner's labels through the REST API. The listener logged Received ForceTokenRefreshMessage and then Connection to Broker Server recreated, and jobs queued after that were picked up.
    • Jobs queued during the stall did not move. In the same label change we gave our main label to a second runner. The four queued jobs did not move to it; they ran only after we cancelled the workflow run and re-ran its failed jobs.

    Until there is a fix, we run an external watchdog. It restarts the runner when two checks at least 90 s apart both find it online and idle while a job it could take has been queued for more than 3 minutes.

    We can share more _diag excerpts if that would help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions