Skip to content

fix(reminders): allow grains to update reminders during shutdown#10155

Merged
ReubenBond merged 2 commits into
dotnet:mainfrom
ReubenBond:fix-reminder-shutdown-storage-updates
May 30, 2026
Merged

fix(reminders): allow grains to update reminders during shutdown#10155
ReubenBond merged 2 commits into
dotnet:mainfrom
ReubenBond:fix-reminder-shutdown-storage-updates

Conversation

@ReubenBond

@ReubenBond ReubenBond commented May 29, 2026

Copy link
Copy Markdown
Member

The active-stage reminder shutdown currently stops the local reminder service completely, so reminder register/unregister calls during later shutdown cleanup can fail with \ReminderService has been stopped.\n\nThis changes reminder shutdown so the Active stop only disables new reminder delivery and drains in-flight callbacks. Full service, timer, refresh-loop, and table shutdown is deferred until RuntimeGrainServices stops. Register/unregister operations are allowed to continue after the service is stopped without logging or throwing, relying on reminder table ETags for concurrency safety.

Microsoft Reviewers: Open in CodeFlow

@ReubenBond ReubenBond changed the title fix(reminders): allow shutdown storage updates fix(reminders): allow grains to update reminders during shutdown May 30, 2026
@ReubenBond ReubenBond enabled auto-merge May 30, 2026 00:13
ReubenBond and others added 2 commits May 29, 2026 17:23
Split reminder service shutdown so the Active stop only prevents new reminder delivery and drains in-flight callbacks. Defer full reminder service and table shutdown until RuntimeGrainServices stops, and let stopped-stage register/unregister operations proceed without logging or throwing.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ReubenBond ReubenBond force-pushed the fix-reminder-shutdown-storage-updates branch from 6bb8de9 to 4935d79 Compare May 30, 2026 00:27
@ReubenBond ReubenBond added this pull request to the merge queue May 30, 2026
Merged via the queue into dotnet:main with commit f172a96 May 30, 2026
62 checks passed
@ReubenBond ReubenBond deleted the fix-reminder-shutdown-storage-updates branch May 30, 2026 01:18
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant