<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
Hi Peter,<br>
<br>
Thanks for the suggestion! I really appreciate that.<br>
<br>
But I have some comments to do.<br>
When starting development the user log activity log feature, we
haven't thought about the operation that generate a Task.<br>
So today, when you create a VM (for example) and it generated the
Task, the user log will have an entry to say the VM was created but
it may not be true if the Task later fails.<br>
I have open an issue for that
<a class="moz-txt-link-freetext" href="https://github.com/kimchi-project/wok/issues/141">https://github.com/kimchi-project/wok/issues/141</a><br>
<br>
The idea to solve that, is to mark a request as "Pending" when it
generates a Task and only mark it as success or failure after
getting the final result in the Task.<br>
<br>
Said that, probably we can combine user log + task view (I would not
say task management as today you can not start/stop a Task manually
through an API or so, we can only see what is going on).<br>
<br>
I am open for suggestions and new ideas on how implement that.<br>
<br>
Related to the update packages issue, Daniel is working on a
solution to remove the queue from UI. So it does not conflict with
your proposal to view the running Tasks and status.<br>
<br>
<div class="moz-cite-prefix">On 07/11/2016 04:11 PM, Peter Pennings
wrote:<br>
</div>
<blockquote
cite="mid:CAA81Kx_j0dW7f1DhYyNLQASpKK96nfuUVT3k-zhqpJcMDXHT5A@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Hey guys,</div>
<div><br>
</div>
We want to suggest here a new discussion which can maybe turn
into a new feature to improve the system.
<div><br>
</div>
<div>During the development of some activities involving
assincronous tasks, we were thinking about a new way to manage
a tasks queue and a new way to get informed about the tasks in
the system.</div>
<div><br>
</div>
<div>We divided the idea into two parts:<br>
</div>
<div><br>
</div>
<div><b>1-)</b> First of all, an idea to the backend take care
of a tasks queue, allowing the user to trigger tasks as many
as he wants. Any request involving an async task triggered by
the user, will be pushed into a queue in the back-end. There
will be a consumer of this queue, getting the first task to
process, and the others will be set with a "Waiting" status.
This "consumer" will manage the queue of tasks. One idea to
implement this is using the "Publish Subscribe" Desing
Pattern. Another idea is to keep the task with a "Waiting"
status in the database, and the consumer consumes from this
database instead of a queue (updating the status and message
of the task). </div>
<div>At the moment, we don't have a way to control this queue,
when it's necessary, the frontend try to do it. The problem is
when the user wants to trigger more then one task, then he
can't make a logout in the system because he will lose this
queue.</div>
<div><br>
</div>
<div><b>2-)</b> Develop a new tab in Wok to show the tasks in
the system. We can show the tasks for each plugin separeted.
For example: if the user has kimchi, ginger and gingerbase
installed, this tab will contain three sections, each one with
a table of tasks containg the id, status (running, waiting,
failure, etc), message and target uri of each task. We can
develop a filter for this tables too, allowing the user to
search the tasks respecting some filters.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>The main idea with this suggestion, is a way to display
what is happening in the system with the async tasks and allow
the user to make more then one async request without waiting
for the last getting finished.</div>
<div><br>
</div>
<div>All of this is just a suggestion, we are open to any doubts
or to discuss and improve this idea. Feel free to any
suggestions or criticizes. :)</div>
<div><br>
</div>
<div>Thank you.</div>
<div><br>
</div>
<div>Peter Pennings</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kimchi-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kimchi-devel@ovirt.org">Kimchi-devel@ovirt.org</a>
<a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/kimchi-devel">http://lists.ovirt.org/mailman/listinfo/kimchi-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>