jobbyphp / jobby

Manage all your cron jobs without modifying crontab. Handles locking, logging, error emails, and more.
https://packagist.org/packages/hellogerard/jobby
MIT License
1.05k stars 154 forks source link

putting the lck file outside the server ( redis or mysql / GCP, AWS) #136

Open sidbenac opened 2 years ago

sidbenac commented 2 years ago

Hi

I want to work on a different way to put the lock file outside the server ( rewrite the functions ) so we can write the lock in REDIS / Mysql or simply AWS/GCP Storage for example using phpleague flysystem for files.

this will help using jobby in a multi server environments for scalability :

if Server 1 runs a job server 2 will not run the job until the job in server 1 is done

what do you think ?