[Ovirt-devel] [PATCH] make taskomatic.rb robust to database outages

Chris Lalancette clalance at redhat.com
Fri May 23 14:54:29 UTC 2008


steve linabery wrote:
> Hi ovirt,
> 
> Resurrecting this patch that I wrote before I started having trouble
> with my appliance. I decided (in the absence of comments) that it was
> better for script to become a daemon and connect at earliest
> opportunity if DB connection failed at initial runtime (logging this
> fact, of course).

OK, looks pretty good.  It doesn't cover all the cases; for instance, if you
stop the database after we've started executing the task, but before we hit
"task.save", we won't re-process the task if/when the database comes back up.
But that is OK for now.  This is better than it was, and we can improve it over
time.

ACK

Chris Lalancette




More information about the ovirt-devel mailing list