have you tried php artisan schedule:run and not scheduler
Cloud Run and Scheduler issue
I have a Laravel 10 application running on Google Cloud Run.
I'm using Google Cloud Scheduler to trigger the scheduler by hitting the application with php artisan scheduler:run. Although it successfully hits the application, the scheduled tasks aren't being executed.
Strangely, when I change the command to php artisan my-custom-command:test, it works fine.
This issue has persisted for a month now, despite previously functioning correctly.
I have added a test cron
$schedule->command(SchedulerTest::class)->everyMinute()
->name('scheduler_test:mywebsite')
->withoutOverlapping()
->emailOutputTo('myemail.com')
->description('My Scheduled Task')
->onOneServer();
And the output is:
Fatal error: Uncaught RuntimeException: A facade root has not been set. in /app/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:352 Any insights on how to resolve this?
Please or to participate in this conversation.