I have a system that I am using the task scheduler for. I am working on scaling out and having multiple servers behind a load balancer. Some tasks I want to be performed on every server, but other tasks are database management tasks that should only be executed once.
I am wondering if anyone knows if there is a package that can manage this or if I just need to build in my own overlap prevention code (thinking of possibly extending the scheduler to have a call similar to withoutOverlapping() that manages who is currently running the command via a database table).
i think it's better to write your own script calling over a private IP, to do this than to use Laravel.
I have written a package that will handle this:
https://packagist.org/packages/jdavidbakr/multi-server-event
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community