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

handle SIGINT / SIGTERM to store long-running tasks #28

Open
Sheraff opened this issue Dec 1, 2022 · 2 comments
Open

handle SIGINT / SIGTERM to store long-running tasks #28

Sheraff opened this issue Dec 1, 2022 · 2 comments

Comments

@Sheraff
Copy link
Owner

Sheraff commented Dec 1, 2022

to verify: I think some tasks might be non-recoverable if interrupted. For example, fetching a track on Spotify is supposed to then fetch the album and artist and won't ever do so if interrupted after the track.

If there are cases like this, we should listen for sigint or other termination signals and store some recoverable state in database before exiting.

@Sheraff Sheraff changed the title handle SIGINT to store long-running tasks handle SIGINT / SIGTERM to store long-running tasks Dec 3, 2022
@Sheraff
Copy link
Owner Author

Sheraff commented May 7, 2023

Kill websocket server on signals: 2233551

@Sheraff
Copy link
Owner Author

Sheraff commented May 7, 2023

Disconnect prisma client on signals: 7f74bf0

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

No branches or pull requests

1 participant