Questions tagged [laravel-scheduler]

Scheduler is a new feature in Laravel 5 designed to simplify tasks that need to be scheduled. All that is required is setting up one cron job that calls php artisan schedule:run and have it run every minute.

101 questions
1
vote
0 answers

Laravel Schedule Commands are not Creating Mutex lock files & WithoutOverlapping not working

Laravel Artisan Schedulers configured in app/console/kernel.php are not Creating Mutex files, thus WithoutOverlapping never working. However I never get errors. Those files are supposed to be at storage/frameworks/ right? Due to overlaps of Artisan…
1
vote
1 answer

Do I have to run cron every minute for Laravel's task scheduler, or is it OK to run less frequently?

I've read the relevant part of the docs and various guides, but I'm unclear as to whether Laravel requires the the cron to be run every minute, or whether it's OK to run less often, i.e. hourly, daily, weekly, etc, without causing issues? In my case…
Inigo
  • 8,110
  • 18
  • 62
  • 110
1
vote
0 answers

Laravel Scheduled Commands randomly stop running (but scheduled jobs keep working)

I have scheduled some commands and it randomly stops working. They work for ~10 days and stop randomly, and if I restart the server, they start working again for another ~10 days. protected function schedule(Schedule $schedule) { …
senty
  • 12,385
  • 28
  • 130
  • 260
1
vote
1 answer

Run Task Scheduling, Laravel

I have a Task Scheduling with works if I run the manual command : php artisan word:weeklyUpdate , but this must be done automatilcally on a specific date, so I tried to run * * * * * cd /var/www/html && php artisan schedule:run >> /dev/null 2>&1 but…
Beusebiu
  • 1,433
  • 4
  • 23
  • 68
1
vote
1 answer

Laravel schedule push notification and cancel it if necessary

In my app with Laravel on back-end users can send messages to each other. I want to send push notification to app users on new inbox message, but I need to send messages only if user hadn't already read this message. So I see it that way On every…
1
vote
2 answers

Laravel CPanel Cron Job command doesn't run

I am having an issue implementating a Cron Job for my Laravel application on a Apache/CPanel shared server. I have a task command that works fine whenever i run it from the command line and also works fine when called daily but it is not running on…
Luiz Wynne
  • 460
  • 3
  • 10
  • 28
1
vote
2 answers

Check status of an scheduler task before adding and running another task

I have a question about the task scheduling in laravel framework. I already have defined the commands currency:update and currency:archive in the list of console commands. Now, I want to run these two commands in the schedule method but with the…
Alireza
  • 129
  • 2
  • 9
1
vote
1 answer

Laravel: Check if new items added to db table and schedule a job to email user

I want to trigger an email when new rows are added to a table in my Laravel application. However I want to add a buffer of sorts, so if 5 rows are added in quick succession then only 1 email is sent. The method I've chosen is to schedule a check…
ejntaylor
  • 1,900
  • 1
  • 25
  • 43
1
vote
1 answer

View is not exported to file when using Laravel Scheduler

I have php file template that I need to fill with some data and export as "rendered_view.php". It need to be done automatically every day. So I'm trying to use the Laravel Scheduler. So I have: View "view_to_render.blade.php"
Denis
  • 170
  • 1
  • 9
1
vote
0 answers

Laravel 5.5 'No scheduled commands are ready to run.'

I have a Laravel 5.5 installation and am trying to get the scheduler to run. I have the following cron job running and it is working fine. * * * * * php /var/www/html/project1/artisan schedule:run >> /var/www/html/project1/schedule.log The cron…
Paul T
  • 11
  • 4
1
vote
0 answers

Laravel not sending email to Gmail/Hotmail if run from Scheduler

I have a very weird situation sending emails from my Laravel project. 1 - Sending email to ANY address from a test function in HomeController works. 2 - Sending email to addresses that belong to any of my domains in the same hosting, run from…
Jk33
  • 855
  • 3
  • 12
  • 28
1
vote
0 answers

laravel 5.2 scheduler not stopping the scheduled jobs, even i revoked the cron job

In the app/console/kernel.php file I have this: Log::notice('schedule start'); $available_input =…
MMM
  • 36
  • 1
  • 4
1
vote
1 answer

Laravel Queue:work running forever in host?

I have a question about Laravel queue. first of all My queue driver is database, if I once call the cron job with command queue:work, the queue will work forever? or i must define a cron job run every minutes?
Morteza Negahi
  • 3,305
  • 8
  • 24
  • 42
1
vote
1 answer

Unable to run scheduled commands in Laravel until I clear cache

php artisan schedule:run gives me error after rebooting OS (Ubuntu). No scheduled commands are ready to run I can run this command many times and it does not start any commands. BUT when I execute php artisan cache:clear all works as expected till…
Jackson J
  • 1,463
  • 3
  • 17
  • 34
1
vote
1 answer

Setting Up Laravel Scheduler on Production Server (Inmotion Hosting)

I have come to realize that how you write the cron for the laravel scheduler varies from hosting to hosting so the docs are useless in this case. The same code I used on my previous host(siteground) does not seem to be working on my current…
user3718908x100
  • 7,939
  • 15
  • 64
  • 123