-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Blocked cron jobs occur when the finishedAt field is missing in the cron-history collection, often due to unexpected application termination.
Possible solutions:
- Add event listeners for application termination to handle cleanup, e.g.,
process.on('SIGTERM', () => { ... }).- Note: Not every uncaught exception leads to application termination, so ensure cleanup doesn’t prematurely mark jobs as finished.
- Implement a mechanism to mark jobs as finished if they exceed a configurable timeout (e.g., X minutes).
- Optionally, add a new field indicating the job was forcefully finished.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request