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

291
November 26, 2016, at 10:47 AM

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 I run php artisan schedule:run it calls any listed commands once and then just dies. It doesn't repeat or anything. Example attempt below:

The Code:

The Result When Trying to Run the Scheduler:

What I've tried:

I've tried multiple suggested fixes from the link below and some are actually referenced throughout stackoverflow as well. Including adding a batch file, setting php's path in my system veriables etc etc. as suggested in the link below by Kryptonit3:

https://laracasts.com/discuss/channels/general-discussion/running-schedulerun-on-windows

However, nothing works. Even in the "Windows Task Scheduler" tool it will just run once, end any further processing in the CLI and then close the window. There is no actual indication that this scheduler is running in the background indefinitely (Sort-of like a background job only without the queues).

Questions:

1 - With no indication (the echoed "I am Scheduled") how do I know if this is actually working?

2 - Why does attempting to run this command die after it successfully completes once.

3 - Does my Laravel Version have anything to do the scheduler not running permenently when I try using php artisan schedule:run in the CLI or windows task scheduler?

4 - Mainly what I'm trying to accomplish here is every minute the system would scan a single DB table's field. How do I accomplish this?

5 - Can someone please give me some clarification on this? Or point me in the right direction so that I can get this thing really running indefinitely without it just ending after the first run?

Note: I do not want to use Laravel Forge or any other external service for something so simple. That would be overkill and unecessary I feel.

READ ALSO
Php array reading

Php array reading

I have an issue with my code i wanna read an array like this,

319
Laravel + Guzzle + MailChimp - 400 Bad Request

Laravel + Guzzle + MailChimp - 400 Bad Request

I get a 400 Bad Request when I do the Guzzle request, its the first time using Laravel, Guzzle and Mailchimp so I'm close to bite my fingers offI don't understand what I'm doing wrong on this one

555
Trying to insert into database using id from link and prepared statement

Trying to insert into database using id from link and prepared statement

I currently have the following codeWhat I'm trying to do is fetch the oppdrID=x from the link and put the query into the row with the same oppdrID

279