In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to solve errors in laravel scheduling execution of php". In daily operation, I believe many people have doubts about how to solve errors in laravel scheduling execution of php. The editor has consulted all kinds of materials and sorted out simple and useful operation methods. I hope it will be helpful to answer the doubts of "how to solve errors in laravel scheduling execution of php". Next, please follow the editor to study!
1. Not in the laravel root directory (the address before the command line operation)
Php / www/wwwroot/laravel6/artisan schedule:run
/ www/wwwroot/laravel/artisan interpretation
/ www/wwwroot/laravel6/ is the path specified to the laravel root directory
Artisan is a command line tool that comes with laravel.
2. Under the laravel directory (address before command line operation)
Php artisan schedule:run
Because the command itself will be in the same directory as artisan at this time, you don't need to specify the artisan location (or you can), just run the command above.
3. The problem that the laravel scheduling task is not executed
The scheduling task command is as follows:
$schedule- > command ('emails:send')-> withoutOverlapping ()
Description:
The purpose of the withoutOverlapping command is that when a process is not finished, it will not start a new process. The mechanism is that when bright is turned on, a file will be added to the project's storage/framework/cache directory. If the process is stuck or not completed, the file will fall into an endless loop and execute the process all the time. After the process is finished, the corresponding cache file will be deleted and the next process will be started.
The simple understanding is that adding withoutOverlapping will cause blocking, and only completed tasks will continue with the following process.
At this point, the study on "how to solve the errors in php's laravel scheduling execution" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.