3 ms·
The other great thing about this is that your batch script can essentially keep plugging away behind-the-scenes when the data set to process is larger (e.g. a n
by lux 19y ago
The other great thing about this is that your batch script can essentially keep plugging away behind-the-scenes when the data set to process is larger (e.g. a newsletter list to send). So even if something goes wrong and the batch script fails, by maintaining a queue and monitoring the script via cron, now you've got a level of simple fault-tolerance built in.
- jmtulloss 19y agoAssuming your queue doesn't die with your script :)
- mrtron 19y agoCorrect. Those sort of cases were the main motivation for building the batch server. In regard to the other point: the batch server should never fail since tasks are spawned off as another thread, and even if it does, the tasks are in fact stored in a database. Fun times!