简体   繁体   中英

How to throttle a job in laravel scheduler

I have a job set up in laravel scheduler which currently takes about 20minutes to finish running from start to finish.

However, I have recently been facing an error where the job get's 'killed' prematurely and i get an email notifying me that I have exceeded the rate limit of 90 API request per minute.

Is there any way that I can implement some sort of throttle on the laravel scheduler job?

Laravel Project Information

  • -Laravel Version 5.5

  • -PHP 7.4

  • -Hosted on Nginx

Yes laravel calls it "rate limiting" https://laravel.com/docs/9.x/queues#rate-limiting

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