<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">I would think against it, because</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">

- it&#39;s very inefficient to send a Skipped event for each missed task than to collect all the data and send it in one shot</div><div class="gmail_default" style="font-family:tahoma,sans-serif">- it&#39;s faster to send the event from the sstate.bbclass than to return the task ids and then call again a python function to generate the sstate file names - basically replicating the sstate.bbclass code in bitbake</div>

<div class="gmail_default" style="font-family:tahoma,sans-serif">- the queueTaskSkipped event has a different semantic than what we need here to return a whole batch of data; creating a new event type from scratch is a bit pointless since the inheritance would need to be broken</div>

<div class="gmail_default" style="font-family:tahoma,sans-serif">- knotty can receive MetadataEvents just as well as sceneTaskSkipped event, or any variation of it</div><div class="gmail_default" style="font-family:tahoma,sans-serif">

<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I would suggest actually just sending this event at all times, not just when toaster is enabled.</div><div class="gmail_default" style="font-family:tahoma,sans-serif">

<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Please advise,</div><div class="gmail_default" style="font-family:tahoma,sans-serif">Alex</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Thu, Feb 20, 2014 at 2:30 PM, Richard Purdie <span dir="ltr">&lt;<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="">On Mon, 2014-02-17 at 17:33 +0000, Alex DAMIAN wrote:<br>
&gt; From: Alexandru DAMIAN &lt;<a href="mailto:alexandru.damian@intel.com">alexandru.damian@intel.com</a>&gt;<br>
&gt;<br>
&gt; Toaster needs to record the attempts to restore<br>
&gt; setscene tasks that don&#39;t have a sstate file.<br>
&gt;<br>
&gt; We build a list of tasks for which we can&#39;t find an<br>
&gt; sstate file, and if we&#39;re running under Toaster data<br>
&gt; collection, we send it off with a MetadataEvent.<br>
&gt;<br>
&gt; Signed-off-by: Alexandru DAMIAN &lt;<a href="mailto:alexandru.damian@intel.com">alexandru.damian@intel.com</a>&gt;<br>
&gt; ---<br>
&gt;  meta/classes/sstate.bbclass | 11 +++++++++++<br>
&gt;  1 file changed, 11 insertions(+)<br>
<br>
</div>I&#39;m wondering if we should perhaps do this in bitbake and add a setscene<br>
&quot;missed&quot; event type there based upon the return value of this function?<br>
<br>
Ideally I&#39;d like to be able to report the stats in knotty too.<br>
<br>
Cheers,<br>
<br>
Richard<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Alex Damian<div>Yocto Project<br></div><div>SSG / OTC </div></div>
</div>