@sr57 There has been a similar question two years ago. I believe it hasn't changed anything since then:
https://laracasts.com/discuss/channels/laravel/how-to-run-scheduling-every-2-sec
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm able to run job every ~10s outside of Laravel but since this job is part of a new Laravel app I wonder if can do it inside.
My first try was to create a job with a sleep(10) and call it with dispatchAfterResponse.
It works until I get an error "Maximum Execution Time"
I think to create an "auto-refresh" page but maybe there is a better solution?
Thanks for any advice.
@sr57 I haven't needed it yet, but bookmarked this Laravel News Article about sub-minute cron jobs
https://laravel-news.com/sub-minute-and-cron-less-scheduled-tasks-in-laravel
Links to original blog post from Freek in the LN article.
Please or to participate in this conversation.