Simple cron log failed executions.

Created on 3 August 2023, over 1 year ago

Problem/Motivation

I only see log entries about successful job executions, could simple cron also log failed executions (with a error or warning level)?

Proposed resolution

In src/Commands/SimpleCronCommands.php:100 add an else:

    if ($status) {
      $this->getLogger('simple_cron')->notice('Execution of cron job @job is completed.', ['@job' => $job->id()]);
    } else {
      $this->getLogger('simple_cron')->error('Execution of cron job @job failed with status code: @status.', ['@job' => $job->id(), '@status' => $status]);
    }

Remaining tasks

Propose a MR

✨ Feature request
Status

Active

Version

1.1

Component

Code

Created by

🇫🇷France O'Briat Nantes

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024