On Wednesday, August 29, 2012 at 6:59 AM, Ben Nagy wrote:
Hi,What's the best way to handle this - client reserves a job, client has to reboot, after reboot client recovers, does stuff and deletes the job (still within TTR). It looks like delete won't work if beanstalkd thinks you're a different connection to the person that reserved the job...Thanks!ben--
You received this message because you are subscribed to the Google Groups "beanstalk-talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/beanstalk-talk/-/V_VbBVjyXJsJ.
To post to this group, send email to beansta...@googlegroups.com.
To unsubscribe from this group, send email to beanstalk-tal...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beanstalk-talk?hl=en.
Yeah. That's a hard problem depending on where in the process your consumer died. You can only delete a job you have reserved and if you close/reopen the connection to beanstalkd then you lose that client reservation that it relies on. You will need to code around this in your consumer just as you would with a transactional db that dies after committing a transaction but before telling the client it finished.
--
You received this message because you are subscribed to the Google Groups "beanstalk-talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/beanstalk-talk/-/90p17QWXPnUJ.
Would it be possible to have your consumer remote control a different server to process the job and remotely issue the reboot command? Then polling the remote server to see when it comes back up? In other words the consumer wouldn't actually do the work or reboot but would be responsible for telling a 3rd party server what to do?This way you wouldn't lose the reference to the reserved job, however it would add some complexity and additional components to your process.