|
|
|
|
|
by jrgnsd
4056 days ago
|
|
There's a number of solutions, depending on your stack: at and cron are good OS level solutions. Sidekiq is great for Ruby. I think the problem lies in that PHP wasn't designed to be a long running process, and for a scheduler you need something long running. |
|
The master interface to the database was a series of PHP functions since the data massaging that had to occur (to facilitate correct interaction in multiple human languages across disparate timezones versus user preferences and time of day, etc.) ruled out direct DB access from anywhere else, back-end processes included.
I think the end solution was something like 'every minute run PHP X from cron, which checks if there are jobs, if so successively spawn children to handle'. It was basic but it worked. Godawful pain with MySQL replication over lossy Chinese internet WAN ... never again.