mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 14:42:59 +03:00
[PR #493] [MERGED] refactor: complete graceful shutdown implementation and add service runner #770
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/493
Author: @ItalyPaleAle
Created: 4/29/2025
Status: ✅ Merged
Merged: 5/4/2025
Merged by: @stonith404
Base:
main← Head:graceful-shutdown-pt2📝 Commits (9)
3ac5806refactor: complete graceful shutdown implementation2871c8dMerge branch 'main' into graceful-shutdown-pt2e6fce54Merge branch 'main' into graceful-shutdown-pt25595662Remove unnecessary codee0bb454Refactor update GeoLite DB2f44694Add scaffholding code for shutdown services7e0e950ServiceRunner: add unit tests, do not stop all services when one returnsb385c32Merge branch 'main' into graceful-shutdown-pt27255803Address review feedback📊 Changes
13 files changed (+454 additions, -130 deletions)
View changed files
📝
backend/cmd/main.go(+6 -1)📝
backend/internal/bootstrap/bootstrap.go(+49 -5)📝
backend/internal/bootstrap/e2etest_router_bootstrap.go(+3 -3)📝
backend/internal/bootstrap/router_bootstrap.go(+56 -92)➕
backend/internal/bootstrap/scheduler_bootstrap.go(+35 -0)➕
backend/internal/bootstrap/services_bootstrap.go(+51 -0)➕
backend/internal/job/geoloite_update_job.go(+45 -0)📝
backend/internal/job/scheduler.go(+3 -1)📝
backend/internal/service/app_config_service.go(+2 -2)📝
backend/internal/service/email_service.go(+1 -1)📝
backend/internal/service/geolite_service.go(+20 -25)➕
backend/internal/utils/servicerunner.go(+58 -0)➕
backend/internal/utils/servicerunner_test.go(+125 -0)📄 Description
Completes the work started in #482 to support graceful shutdown.
initBootstrapand the GeoLite service's Run method to implement the ServiceRunner's Service interface🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.