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
1 answer

Laravel Cron is running twice

I am using laravel to run my cron.The problem is it that all the commands are running twice. When i add ps -A in my terminal it shows two enteries. 964 ? 00:04:56 cron 25010 ? 00:00:00 cron I have this entry in laravel : * * * * *…
Sameer Shaikh
  • 7,564
  • 2
  • 17
  • 32
1
vote
1 answer

Trouble getting Cron job to run perfectly

I use Laravel/Lumen. I have set up a simple job to send an SMS:
user3718908x100
  • 7,939
  • 15
  • 64
  • 123
1
vote
1 answer

laravel eloquent query builder updating custom timestamp field without any logic

I have two columns in a table called expired(boolean) and expire_date(timestamp). I m running a scheduler to check if a coupon is expired or not in everyMinute() while updating the expired column values using foreach, I have found that its changing…
Noob Coder
  • 2,816
  • 8
  • 36
  • 61
1
vote
1 answer

Laravel 5.3 scheduler Runs once on Windows then ends without any further processing

OS: Windows 8.1 Laravel-version: 5.3.15 Hello, I'm having a bit of trouble getting Laravel's scheduler to properly run on on my machine and STAY RUNNING in a way where I can see some sort of output to indicate that it's actually working. Every time…
Andre F.
  • 1,123
  • 1
  • 10
  • 27
1
vote
1 answer

Laravel Scheduler - specify sender when using emailOutputTo()

How to specify sender for email reports which are sent by using emailOutputTo() method of Laravel Scheduler? Currently from header is empty and I see in Gmail: My code is: $schedule->command('some:task') ->dailyAt('05:30') …
Limon Monte
  • 52,539
  • 45
  • 182
  • 213
1
vote
5 answers

How to create set Laravel schedule for each hour 15 minutes?

I need to run some data update functions each hours 15 minutes. For example: 12:15 13:15 14:15 15:15 How to create schedule for it? I tried something like $schedule->command('stats:refresh')->hourly()->at(':12'); but didn’t work.
user1564141
  • 5,911
  • 5
  • 21
  • 18
0
votes
1 answer

Laravel 10 scheduler on VPS - fails to run a nodeJS process but succeeds if is typed manually in the console

I am experiencing strange behavior of a process (Illuminate\Support\Facades\Process) running through Laravel 10 scheduler on a VPS and I really don't know how is this happening or how to fix this behavior. Crontab takes care of starting the Laravel…
Paulis
  • 13
  • 2
0
votes
1 answer

Laravel scheduler chain process calls

I have several processes that I want to chain using the laravel scheduler.
Arkaik
  • 852
  • 2
  • 19
  • 39
0
votes
0 answers

How to automatically generate table data in laravel every 2 months

hello I work on a laravel project on travel management.. I would like to generate trips in my project, automatically generate trips that take place for example at 8 a.m. or 10 a.m. for 2 months.. I would like to do it without going through by…
0
votes
0 answers

Laravel php artisan schedule:run directly on bash

I have a laravel application hosted on a ubuntu server.While i was setting up the scheduler i ran this command on the terminal: php artisan schedule:run >> /dev/null 2>&1 Reading the documentation it says that i should have included the previous…
cdBreak
  • 63
  • 6
0
votes
1 answer

Laravel 7: Automatically add values to a column on first day of every month

I want to add value to specific column for all rows in a table every month. Users Table: id leave_alloc leave_earn 1 20 0 2 20 1.5 3 20 -3 4 20 4 Controller: public function earned_leave(){ $user = User::where('leave_alloc',…
0
votes
0 answers

PHP laravel - PayPal SDK cannot be called from scheduler

I am unable to get PayPal payment status from scheduler. Example below: function fixUnfinished() { $paypalRequest = new OrdersGetRequest(""); $response =…
0
votes
1 answer

Laravel schedule not respecting time

I am using Laravel 9 and I am trying to set several tasks in my schedule. One of them should be called every minutes the other every 5 minutes . protected function schedule(Schedule $schedule) { $schedule->call(/* send myself a mail…
pnonnen
  • 39
  • 1
  • 9
0
votes
2 answers

Laravel Schedule daily notification for each user on their preferred time

I'm developing a task management app. I need to send a daily report notification at the user's preferred time. I did check Laravel features such as Task Scheduling and etc. But I don't find the right solution. If I want to use Schedule I have to…
Ali Jouadi
  • 133
  • 1
  • 2
  • 15
0
votes
1 answer

laravel scheduling and jobs and queues

I have a series of drivers for sending emails, for example Gmail, Yahoo, etc. The structure of the database: drivers_table: id name host status user pass 1 Gmail google.com 1 user1 pass1 2 Yahoo yahoo.com…
Hossein
  • 67
  • 1
  • 9