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.

CommentFileSizeAuthor
#2 job-scheduler-3473096-2.patch1.86 KBklausi

Comments

klausi created an issue. See original summary.

klausi’s picture

Status: Active » Needs review
StatusFileSize
new1.86 KB

Patch.

tibezh’s picture

Status: Needs review » Reviewed & tested by the community

Looks good, thank you for the PR!

intrafusion’s picture

Status: Reviewed & tested by the community » Closed (outdated)