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
0
votes
3 answers

Laravel Queues (Database driver) + Cron job (task scheduler) stacked and are not being sent anymore after server crashed

I have configured a laravel queue to send emails, and it used to work fine sending the emails immediately. I also used laravel task scheduler and configured the queue:listen to be executed every minute, resulting in the server crashing because cron…
mi-ho
  • 167
  • 3
  • 14
0
votes
2 answers

Getting error command does not exist in task scheduling Laravel

I am following this tutorial: https://www.sitepoint.com/managing-cronjobs-with-laravel/ but when I type in command line php artisan make:list i get an error message [ReflectionException] Class App\Console\Command\Test123 does not exist How to…
Murlidhar Fichadia
  • 2,589
  • 6
  • 43
  • 93
0
votes
1 answer

PHP-CLI Command Not Found

Now I just moved to inmotion from siteground and previously from bluehost. I am trying to set up my laravel(lumen) application on the server. I have been able to get everything else working but the scheduler which I just cannot seem to get to…
user3718908x100
  • 7,939
  • 15
  • 64
  • 123
0
votes
0 answers

Laravel Scheduler

I'm new to Laravel Scheduler. Whenever I add something to my database (let's say entry A), I schedule an event (which will trigger after some time). What I can't figure out is: if I delete entry A, and its event has not been triggered, is there any…
Gardezi
  • 2,692
  • 2
  • 32
  • 62
0
votes
0 answers

Laravel 4.2 Indatus/dispatcher - Command no defined

I'm using Indatus/dispatcher for Laravel 4.2. It is basically a Cron job based Task Scheduler. I am trying to run a Cron job every minute, and I am getting this error on the live server (but it works fine on my local machine). Here is what I have…
Jazzbot
  • 385
  • 1
  • 4
  • 18
0
votes
1 answer

Laravel 5.2 Scheduler

Dear Stackoverflowers, I've created 2 Laravel commands, one that clears the db of records, an the other one that sends an email. If I call them separately they work, and in the app/console/kernel.php file I have this: protected function…
Dirk
  • 3,095
  • 4
  • 19
  • 37
0
votes
0 answers

What is the correct way to schedule tasks in laravel?

As explained in the documentation, you can set a cronjob to execute laravel scheduler I want to run tasks, every wednesday, every two hours starting at 13:00. I placed the scheduler in Command Kernel for everyhour I want the task to run. But this…
chepe263
  • 2,774
  • 22
  • 38
-1
votes
1 answer

How to put seconds in the Cron schedule with expressions in Laravel?

I used cron expressions cron('*/3 * * * *') and it means every 3 minute, but now I need in every 30 seconds. BUT I read that cron does not have anything for using seconds, also someone offered just repeat it 2 times with sleeping, but I guess it is…
Aleks
  • 147
  • 10
-1
votes
2 answers

Using the config file in Laravel Schedule Job

Can I load the config file when the scheduling job starts? I tried to use a local variable customerName in Schedule Class and it already defined in the Config folder as named customerInfo. namespace App\Console\Commands; use…
JsWizard
  • 1,663
  • 3
  • 21
  • 48
-2
votes
1 answer

Is it better to run a internal cron service like Laravel scheduler or use a external service like Easycron

Will it not put a lot of load on the server and reduce the overall performance of the app if there is a cron running on the server say every minute. And not just the one, but multiple such crons. Using Laravel Scheduler right now to do something…
simba777
  • 71
  • 14
-4
votes
1 answer

is there any way to delete data from database automatically when user set date in laravel?

Delete database data when user set date when that date is reached.
1 2 3 4 5 6
7