refactor: complete graceful shutdown implementation and add service runner #208

Closed
opened 2025-07-08 08:42:27 -04:00 by AtHeartEngineer · 0 comments

Originally created by @ItalyPaleAle on 4/29/2025

Completes the work started in #482 to support graceful shutdown.

  1. Introduces a ServiceRunner which manages long-running background services, running them until the context is canceled (and collecting errors)
  2. Refactored initBootstrap and the GeoLite service's Run method to implement the ServiceRunner's Service interface
  3. Moved the initialization of all "services" (not long-running) and the scheduler into their own function
*Originally created by @ItalyPaleAle on 4/29/2025* Completes the work started in #482 to support graceful shutdown. 1. Introduces a ServiceRunner which manages long-running background services, running them until the context is canceled (and collecting errors) 2. Refactored `initBootstrap` and the GeoLite service's Run method to implement the ServiceRunner's Service interface 3. Moved the initialization of all "services" (not long-running) and the scheduler into their own function
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pocket-id#208