<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">My understanding is: it's the engine which finalizes the task results, based on the status returned by the task via convey_task_result call. <div><br></div><div><a href="https://github.com/stackforge/mistral/blob/master/mistral/engine/abstract_engine.py#L82-L84">https://github.com/stackforge/mistral/blob/master/mistral/engine/abstract_engine.py#L82-L84</a></div><div><a href="https://github.com/stackforge/mistral/blob/master/mistral/engine/scalable/executor/server.py#L44-L66">https://github.com/stackforge/mistral/blob/master/mistral/engine/scalable/executor/server.py#L44-L66</a></div><div><br></div><div>In case of async tasks, executor keeps the task status at RUNNING, and a 3rd party system will call convey_task_resutls on engine. </div><div><br></div><div><blockquote type="cite"><div dir="ltr"><a href="https://github.com/stackforge/mistral/blob/master/mistral/engine/scalable/executor/server.py#L123">https://github.com/stackforge/mistral/blob/master/mistral/engine/scalable/executor/server.py#L123</a>,</div></blockquote><br></div><div>This line however looks like a bug to me:  at best it doesnt do much and at worst it overwrites the ERROR previously set in here <span style="white-space: pre-wrap; "><a href="http://tinyurl.com/q5lps2h">http://tinyurl.com/q5lps2h</a> </span></div><div><br></div><div>Nicolay, any better explanation?</div><div><br></div><div><br></div><div>DZ> </div><div><div><br><div><div>On Mar 26, 2014, at 6:20 PM, W Chan <<a href="mailto:m4d.coder@gmail.com">m4d.coder@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div>Regarding <a href="https://github.com/stackforge/mistral/blob/master/mistral/engine/scalable/executor/server.py#L123">https://github.com/stackforge/mistral/blob/master/mistral/engine/scalable/executor/server.py#L123</a>, should the status be set to SUCCESS instead of RUNNING?  If not, can someone clarify why the task should remain RUNNING?</div>
<div><br></div><div>Thanks.</div><div>Winson</div><div><br></div></div>
_______________________________________________<br>OpenStack-dev mailing list<br><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<br></blockquote></div><br></div></div></body></html>