Skip to content

Rework shutdown logic#6659

Draft
Jackenmen wants to merge 1 commit intoCog-Creators:V3/developfrom
Jackenmen:rework_shutdown_logic
Draft

Rework shutdown logic#6659
Jackenmen wants to merge 1 commit intoCog-Creators:V3/developfrom
Jackenmen:rework_shutdown_logic

Conversation

@Jackenmen
Copy link
Member

Description of the changes

Fixes #5780
Looking through already open PRs, this is the same fix as proposed in #6261, but I took a chance to rework things a bit to make it less complex. No point in having shutdown_handler do signal stuff when that's an early return/exit from the function, I split that out. That means the exit code has to always be provided.

Have the changes in this PR been tested?

Yes

@Jackenmen Jackenmen added this to the 3.5.23 milestone Feb 20, 2026
@Jackenmen Jackenmen added the Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing. label Feb 20, 2026
@github-actions github-actions bot added the Category: Core - Command-line Interfaces This is related to Red's CLIs (redbot, redbot-launcher, redbot-setup). label Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category: Core - Command-line Interfaces This is related to Red's CLIs (redbot, redbot-launcher, redbot-setup). Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate shutdown handling from unhandled exceptions in main bot task

1 participant