-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Php artisan schedule:run not working #17156
Comments
Your Laravel version is outdated, and you are using PHP 5.5 according to that path. Is you application down for maintenance? Can you run |
@sisve Firstly thanks for your quick response; I have run My Php version
My Laravel version
Laravel 5.2 supports task scheduling, so this feature should work, |
Next step in debugging would probably be to edit Event::isDue and see what it returns. |
@sisve you are correct, I have changed my php version; But no change
|
@sisve interesting thing is, If i remove .env file, it is executing ! WHY ? |
What if you have an empty .env file? Could you remove one setting at a time from your .env file to see when it starts to work? The goal is to find out which specific configuration setting is required to reproduce the issue. |
Sounds like this is a task for the forums until there's something that can be presented clearly in a new issue. |
It seems I have same problem, too. In my case: I use AWS elasticbeanstalk to deploy, I do not use .env file in Environment but I use Elastic Beanstalk Environment Properties to set Env variable via $_SERVER. I modified my database.php a little bit for load DB_HOST, DB_PORT, etc from $_SERVER instead of env file But when I tried to implement an scheduler, It seems use .env file to get DB_HOST, DB_PORT, etc, and it failed to run scheduler. Do you have any suggestion for me? |
I am trying Laravel schedule command to run some background process for sending mails and fetching emails. When I run these commands individually using artisan they all run, but when I try to run shcedule:run command to run these commands it shows "No scheduled commands are ready to run."
I've tried to look for an answer but nothing worked. So I tried to rectify the problem by running simple command and check the output. Below is my kernal.php
when I run schedule:run it shows this output.
But when I remove dd() in schedule() function the output is
Please help me, I am using laravel 5.2
The text was updated successfully, but these errors were encountered: