Skip to content

Add graceful shutdown that cleans up DB and jobs #149

@robertocarlous

Description

@robertocarlous

Body:

The process should respond to SIGTERM/SIGINT by stopping new requests, waiting for in-flight requests to finish, shutting down cron jobs, and disconnecting Prisma clients.

Acceptance Criteria:

  • Server stops accepting new requests on SIGTERM.
  • In-flight requests are given a configurable grace period to finish.
  • Prisma disconnect is called before process exit.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaign

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions