Time of last run not updating

Created on 7 May 2020, about 4 years ago
Updated 27 March 2023, over 1 year ago

Even though cron runs every minute, and Elysia Cron shows the correct last run time in the last run column, the overall "Last run" is not updating neither on the EC page nor on the overall System Status page, see the screenshot. It seems as if the old value was being cached.

The only way to fix this is to clear the caches.

🐛 Bug report
Status

Active

Version

2.7

Component

User interface

Created by

🇮🇪Ireland Rafal Lukawiecki Ireland

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

Comments & Activities

Not all content is available!

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

  • Bumping this ticket. Having the same issue on Drupal 7.91, PHP 7.3, and elysia_cron 7.x-2.9. When running cron via drush (`drush cron`), elysia_cron is triggered and runs successfully, but does not update the "Last run" time as seen in OP's screenshot (it does update the individual jobs' run times, same as OP). When running via web request, the "Last run" time does update correctly; however, drush is preferable for our setup at the moment.

    It looks like `elysia_cron_drush_invoke()` simply runs the cron tasks and then calls `elysia_cron_drush_die()`, resulting in `drupal_exit()` getting called and terminating the script. This seems to be intended behavior, so that *only* the elysia_cron job runs. However, exiting early prevents the `variable_set('cron_last', REQUEST_TIME);` line in common.inc from getting called, so the "Last run" time isn't getting reset.

    For now, I'll just write and apply a patch, but an official fix would be great.

Production build 0.69.0 2024