I'm using beanstalkd
to managed queues. I just realised that if there are jobs in a queue and the beanstalkd
process is restarted or crashes then the job is lost forever (or so I think).
Is there a way to preserve the jobs in the queue on beanstalkd
failure or restart? If not, whats best practice to ensure jobs are never lost?
Beanstalkd can be started with the -b
(binary log) option, and beanstalkd will write all jobs to a binlog. If the power goes out, you can restart beanstalkd with the same option and it will recover the contents of the log.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With