I'm running into this as well (laravel 6, here). Had to disable emailoutput :(
Apr 25, 2020
4
Level 14
emailOutputOnFailure() on command executing every time in Vapor
Running Laravel: v7.7.1
In the app/Console/Kernel.php I have
protected function schedule(Schedule $schedule)
{
$schedule->command(DailyCommand::class)
->dailyAt('01:00')
->emailOutputOnFailure('[email protected]');
}
Then i have an example command app/Console/Commands/DailyCommand.php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class DailyCommand extends Command
{
protected $signature = 'daily:run';
public function handle()
{
$var = 1 + 1;
}
}
However I'm getting emails every day for the command with Subject "Scheduled Job Output For ['/opt/bin/php' 'artisan' daily:run]" and nothing in the content of the email. Vapor logs and Sentry.io show no errors.
Anyone have a similar issue, or advice on what could be wrong with the above code?
Thanks in advance 🙂
Please or to participate in this conversation.