Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.Problem/Motivation
Same as #3351024: Option to do not delete the job on exception for Drupal 7.
Problem: when there is a PDOException from the database during your cron job run then the cronjob will be deleted. That is very bad when I expect the cronjob to run every hour and the exception was just temporary.
Steps to reproduce
Throw an exception in the callback of a job. Observe how the job is dropped from the job_schedule after execution.
Proposed resolution
Add a variable to never drop jobs.
Remaining tasks
Patch review.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | job-scheduler-3473096-2.patch | 1.86 KB | klausi |
Comments
Comment #2
klausiPatch.
Comment #3
tibezh commentedLooks good, thank you for the PR!
Comment #4
intrafusion