Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ShutdownSignal #1160

Merged
merged 1 commit into from
Jan 26, 2024
Merged

Remove ShutdownSignal #1160

merged 1 commit into from
Jan 26, 2024

Conversation

serprex
Copy link
Contributor

@serprex serprex commented Jan 25, 2024

The idea behind ShutdownSignal is that we can use signals to gracefully stop workflows,
in practice this doesn't work

  1. DROP MIRROR is a 1 minute timeout for shutdown to stop workflow, in cdc I had us cut off early, but even waiting for normalize to finish is too much for 1 minute
  2. Signal isn't checked by flows until they reach main loop, in theory they could check, but in effect you're doubling the existing context error code

Solution: go straight to workflow cancelation. If graceful shutdown is desired (ie, finishing current syncs, finishing normalization), pause mirror before drop

The idea behind ShutdownSignal is that we can use signals to gracefully stop workflows,
in practice this doesn't work

1. DROP MIRROR is a 1 minute timeout for shutdown to stop workflow,
in cdc I had us cut off early, but even waiting for normalize to finish is too much for 1 minute

2. Signal isn't checked by flows until they reach main loop,
in theory they could check, but in effect you're doubling the existing context error code

Solution: go straight to workflow cancelation. If graceful shutdown is desired, pause mirror before drop
@serprex serprex force-pushed the shutdown-is-cancel branch from b8d53bc to 6fcaf38 Compare January 25, 2024 20:17
@iskakaushik iskakaushik merged commit 58b6010 into main Jan 26, 2024
7 checks passed
@iskakaushik iskakaushik deleted the shutdown-is-cancel branch January 26, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants