feat(service): implement idle auto-shutdown
Metadata
Current evaluation
Merged. Implements idle auto-shutdown, terminating the service after inactivity with no active sessions or API calls. Also improves proxy and control server crash handling. Approved by two reviewers and passed CI.
Suggested action: —
No scores available.
Issue body
Allow the service to auto-shutdown after a specified time if no control
API calls are made and there are no sessions active. Also add better
handling of proxy or control server crashes.
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Implements idle auto-shutdown, terminating the service after inactivity with no active sessions or API calls. Also improves proxy and control server crash handling. Approved by two reviewers and passed CI. |
Update history
| Date | Change |
|---|---|
| created |
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #183 service: implement idle auto-shutdown | fetch-service | merged | Implemented idle auto-shutdown for the service. Automatically terminates the service after a configured duration with no control API calls or active sessions. Merged after approval by two reviewers. | |
| #474 feat: set the fetch-service to idle shutdown | craft-application | merged | Merged a pull request configuring the fetch-service to automatically shut down after five minutes of inactivity. Approved by two reviewers, passed CI checks, and implemented with minimal changes across two files. | |
| #605 fix: refactor service shutdown to prevent races | fetch-service | open | Refactors service shutdown to prevent race conditions in fetchctl socket server, HTTP proxy, and control API server. Approved by 2 reviewers with 0 unresolved comments; most CI passing. |