Skip to content

Graceful Shutdown for Background Jobs #201

@Baskarayelu

Description

@Baskarayelu

Description:

If any background jobs (cron, queue consumers) are run in the same process as the Next.js server, ensure they shut down gracefully on SIGTERM.

Requirements

  • Register signal handlers (SIGTERM, SIGINT); set “shutting down” flag and stop accepting new job work
  • Wait for in-flight job to complete (with timeout) before exiting
  • Document that production cron might be external (Vercel Cron, separate worker) so in-process jobs are optional
  • Implement only if backend actually runs in-process background jobs

Acceptance Criteria

  • Signal handling and graceful shutdown
  • Documented
  • Timeout and exit behavior clear

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