According to the documentation here:
It looks like cron is setup by default to run php artisan schedule:run
. I’m very familiar with this, but I’m uncertain on how that would work with multiple machines.
For instance, if I have a scheduled tasks that sends a “good morning” email every day at 9 AM, if I have 10 machines running, should I expect 10 emails? If this is the case, then I need to make sure that all of my scheduled commands generate unique jobs using laravel’s ShouldBeUnique trait and set them so that they can only run once per day.
On the other hand, if Fly’s cron handler is not per server but a service that runs only once and delegates to only one machine, then I can write my laravel schedulers as normal and assume that the scheduled commands will only run once, just as they would in a single server environment.
Which is it?