- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.3k
 
Open
Labels
bugSomething isn't workingSomething isn't workinggha-runner-scale-setRelated to the gha-runner-scale-set modeRelated to the gha-runner-scale-set modeneeds triageRequires review from the maintainersRequires review from the maintainers
Description
Checks
- I've already read https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/troubleshooting-actions-runner-controller-errors and I'm sure my issue is not covered in the troubleshooting guide.
 - I am using charts that are officially provided
 
Controller Version
0.12.1
Deployment Method
Helm
Checks
- This isn't a question or user support case (For Q&A and community support, go to Discussions).
 - I've read the Changelog before submitting this issue and I'm sure it's not due to any recently-introduced backward-incompatible changes
 
To Reproduce
N/ADescribe the bug
Our AutoscalingListener pod will stop accepting jobs and go into a "looping" state where we constantly see errors like this.
2025/10/23 16:04:46 Application returned an error: createSession failed: failed to create session: failed to do the session request: actions error: StatusCode 409, AcivityId "": GitHub.Actions.Runtime.WebApi.RunnerScaleSetSessionConflictException, GitHub.Actions.Runtime.WebApi: The actions runner scaleset example already has an active session.The issue seems to be related to the 30-second cancel function context, as we don't ever see failed to delete message session:  but only Deleting message session in the logs.
It seems like the message session is not being cleaned up in time, and when the app is re-initialized, it sees the old message session id via API causes it to "loop"
Describe the expected behavior
N/A
Additional Context
N/AController Logs
2025/10/23 16:04:46 Application returned an error: createSession failed: failed to create session: failed to do the session request: actions error: StatusCode 409, AcivityId "": GitHub.Actions.Runtime.WebApi.RunnerScaleSetSessionConflictException, GitHub.Actions.Runtime.WebApi: The actions runner scaleset example already has an active session.
2025-10-23T16:02:07Z	INFO	listener-app	Starting listener
2025-10-23T16:02:07Z	INFO	listener-app	Starting metrics server
2025-10-23T16:02:07Z	INFO	listener-app	app initialized
2025/10/23 16:02:04 Application returned an error: failed to get message: failed to get next message: actions error: StatusCode 200, AcivityId "": EOF
2025-10-23T16:02:04Z	INFO	listener-app.listener	Deleting message session
2025-10-23T16:02:00Z	INFO	listener-app.listener	Getting next message	{"lastMessageID": 100042318}Runner Pod Logs
N/AMetadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggha-runner-scale-setRelated to the gha-runner-scale-set modeRelated to the gha-runner-scale-set modeneeds triageRequires review from the maintainersRequires review from the maintainers