The loadLatestLogEntry does not provide the latest log entry.

Created on 4 July 2022, almost 2 years ago
Updated 18 February 2024, 4 months ago

Problem/Motivation

The loadLatestLogEntry does not provide the latest log entry, It is because the log entry is not finished yet at the time of hook_cron_post_run.

Steps to reproduce

Implement hook_cron_post_run, and try to get the latest log entry by calling $job->loadLatestLogEntry()

Proposed resolution

The proposed solution is that call the finish method of the log entry before invoking the cron_last_run.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡΅πŸ‡°Pakistan hmdnawaz

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024