Skip to content

Commit

Permalink
Error handling in cron (#5935)
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Mar 25, 2024
1 parent e5ea0f5 commit 902b304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/core/DrupalCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ public function __construct(
#[CLI\Command(name: self::CRON, aliases: ['cron', 'core-cron'])]
#[CLI\Usage(name: 'drush maint:status && drush core:cron', description: 'Run cron unless maintenance mode is enabled')]
#[CLI\Topics(topics: [DocsCommands::CRON])]
public function cron(): void
public function cron(): bool
{
$this->getCron()->run();
return $this->getCron()->run();
}

/**
Expand Down

0 comments on commit 902b304

Please sign in to comment.