Skip to content

More graceful shutdown fixes#2690

Merged
rhafer merged 10 commits intoopencloud-eu:mainfrom
rhafer:issue/2282
Apr 28, 2026
Merged

More graceful shutdown fixes#2690
rhafer merged 10 commits intoopencloud-eu:mainfrom
rhafer:issue/2282

Conversation

@rhafer
Copy link
Copy Markdown
Member

@rhafer rhafer commented Apr 28, 2026

This reverts #2631 and contains an alternative fix for graceful shutdown via Suture by avoiding the Supervisor to be stopped early.

rhafer added 8 commits April 28, 2026 12:22
This reverts commit 900ecf7.
Previously the Supervisor was shutdonw as soon as the main context was
canceled. Which cause the managed services to fail during shutdown (in
"trapShutdownCtx()") as the Supervisor was gone already.

We now pass a separate Context to Supervisor.ServeBackground() to avoid
this.

Fixes: opencloud-eu#2282
@rhafer rhafer requested review from butonic and dragonchaser April 28, 2026 10:42
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Copy link
Copy Markdown
Member

@butonic butonic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 28, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
50.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@rhafer rhafer merged commit 9135eab into opencloud-eu:main Apr 28, 2026
60 of 61 checks passed
@openclouders openclouders mentioned this pull request Apr 28, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants