Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
drush cron reports success even if the cron run fails (i.e. cron is already running or there is a stale semaphore)
Comment | File | Size | Author |
---|---|---|---|
#5 | drush-cron-fail.patch | 741 bytes | John Morahan |
#2 | drush-cron-fail.patch | 732 bytes | John Morahan |
drush-cron-fail.patch | 707 bytes | John Morahan |
Comments
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commentedGood catch. We should use drush_error() and drush_log() instead of drush_print()
Comment #2
John Morahan CreditAttribution: John Morahan commentedAh... like this?
Comment #3
moshe weitzman CreditAttribution: moshe weitzman commentedThe success message should be drush_log(dt('Cron successfully run'), 'success') or somesuch.
Comment #4
John Morahan CreditAttribution: John Morahan commentedOh, wait, you meant drush_log for success.
Comment #5
John Morahan CreditAttribution: John Morahan commentedComment #6
moshe weitzman CreditAttribution: moshe weitzman commentedcommitted. thx.