[D7] Option to do not delete the job on exception

Created on 9 September 2024, 2 months ago
Updated 10 September 2024, 2 months ago

Problem/Motivation

Same as ✨ Option to do not delete the job on exception Needs work 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.

✨ Feature request
Status

RTBC

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria klausi πŸ‡¦πŸ‡Ή Vienna

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024