----- Original Message -----
From: "Eli Mesika" <emesika(a)redhat.com>
To: "Allon Mureinik" <amureini(a)redhat.com>
Cc: "Liron Aravot" <laravot(a)redhat.com>, "Federico Simoncelli"
<fsimonce(a)redhat.com>, "engine-devel" <engine-devel(a)ovirt.org>,
"Eduardo Warszawski" <ewarszaw(a)redhat.com>, "Yeela Kaplan"
<ykaplan(a)redhat.com>
Sent: Friday, August 10, 2012 3:40:48 AM
Subject: Re: [Engine-devel] Serial Execution of Async Tasks
----- Original Message -----
From: "Allon Mureinik" <amureini(a)redhat.com>
To: "engine-devel" <engine-devel(a)ovirt.org>
Cc: "Eduardo Warszawski" <ewarszaw(a)redhat.com>, "Yeela Kaplan"
<ykaplan(a)redhat.com>, "Federico Simoncelli"
<fsimonce(a)redhat.com>, "Liron Aravot" <laravot(a)redhat.com>
Sent: Thursday, August 9, 2012 6:41:09 PM
Subject: [Engine-devel] Serial Execution of Async Tasks
Hi guys,
As you may know the engine currently has the ability to fire an SPM
task, and be asynchronously be "woken-up" when it ends.
This is great, but we found the for the Live Storage Migration
feature we need something a bit complex - the ability to have a
series of async tasks in a single control flow.
Here's my initial design for this, your comments and criticism would
be welcome:
http://wiki.ovirt.org/wiki/Features/Serial_Execution_of_Asynchronous_Task...
Apart from the short explanation & flow , since this is a detailed design , I would
add
1) Class diagram
2) Flow diagram
+1
I am also interested to get a flow how a task is created (i.e - replacement of
ConcreateCreateTask) - but this will be handled in what Eli has asked for.
In addition, you have two titles of "Successful Execution".
At "compensate" - see how revertTasks currently behaves.
Also read -
http://wiki.ovirt.org/wiki/Main_Page/features/RunningCommandsOnEndActionF...
This is the work I did for CloneVmFromSnapshot - not saying it's perfect - but you
should have an infrastructure/pattern to rollback not just via spmRevertTask but also
using an engine command.
Yair
-Allon
_______________________________________________
Engine-devel mailing list
Engine-devel(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel
_______________________________________________
Engine-devel mailing list
Engine-devel(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel