Skip to content

Add Graceful Shutdown #58

@greatest0fallt1me

Description

@greatest0fallt1me

Description
On SIGTERM/SIGINT, stop accepting new requests, finish in-flight requests, close DB pool and Horizon listener, then exit. Use server.close() and track active connections. Log shutdown steps.

Requirements and context

  • Must allow load balancer to drain
  • Avoid killing in-flight billing or settlement

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b feature/graceful-shutdown
  • Implement changes
    • Register SIGTERM/SIGINT handler; set server.close(); await pool.end(); process.exit(0)
    • Example commit message: feat: graceful shutdown

Guidelines

  • Clear documentation
  • Timeframe: 96 hours
  • Project details: #

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions