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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | loadLatestLogEntry-does-not-provide-latest-log-entry-3294129-2.patch | 599 bytes | hmdnawaz |
Issue fork ultimate_cron-3294129
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
hmdnawaz commentedComment #4
hmdnawaz commentedComment #5
monymirzaComment #8
berdirWhy not, although wondering if it wouldn't make more sense to pass the log entry along to the hook instead. But committed.