drush cron reports success even if the cron run fails (i.e. cron is already running or there is a stale semaphore)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

moshe weitzman’s picture

Status: Needs review » Needs work

Good catch. We should use drush_error() and drush_log() instead of drush_print()

John Morahan’s picture

Status: Needs work » Needs review
FileSize
732 bytes

Ah... like this?

moshe weitzman’s picture

The success message should be drush_log(dt('Cron successfully run'), 'success') or somesuch.

John Morahan’s picture

Status: Needs review » Needs work

Oh, wait, you meant drush_log for success.

John Morahan’s picture

Status: Needs work » Needs review
FileSize
741 bytes
moshe weitzman’s picture

Status: Needs review » Fixed

committed. thx.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.