简体   繁体   中英

Scheduler Task with Laravel5 in Windows

I have a doubt with the SchedulerTasks. I created the command in Laravel 5.0 called log::company , this command I need to be executed every second, even if website is not opened.

I have an auction, when the time of auction finish I need to change the state of the auction to 'finished', with this command I change this state, for this reason I need to use this command every second.

But I use Windows and the documentation of Laravel5.0 shows how to use with Ubuntu. I don't know which is the best option to execute this command every second.

You need to use CronJob to triger php artisan schedule:run every second even if site is not opened. But since you are on Windows you have few alternatives to CronJob. Look at What is the Windows version of cron? for more information about scheaduling tasks in Windows.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM