<div dir="ltr"><div>Hi Grant,</div><div><br></div><div>Not currently via the serialized task result from the API in Pulp2. The data model for Pulp3 already has a created field so this only affects Pulp2.</div><div><br></div><div>If you are interested in contributing this feature to Pulp2, the first step is to open a feature request and then we can outline what you would need to do. If you do please post a link to it. A workaround option would be to record the time you made the API request at which generated the task locally somehow (sqlite perhaps?). Waiting time should be start_time - creation_time.<br></div><div><br></div><div>With Pulp2 approaching maintenance mode, it may be easier to do the workaround for now until Pulp3 is usable enough for you. More questions or feedback is welcome.</div><div><br></div><div>All the best,</div><div>Brian<br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 25, 2018 at 12:13 AM, Grant Byers <span dir="ltr"><<a href="mailto:grant.byers@gmail.com" target="_blank">grant.byers@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi,<br><br></div>Is there any means to determine how long a task has been waiting since (Pulp2)? For example, if I query the tasks endpoint, I get the following;<br><br><br>{u'_href': u'/pulp/api/v2/tasks/61d0eabc-<wbr>5007-43e2-9646-0a1fd987efc3/',<br> u'_id': {u'$oid': u'5b078c09bebdfa187befb0ae'},<br> u'_ns': u'task_status',<br> u'error': None,<br> u'exception': None,<br> u'finish_time': None,<br> u'id': u'5b078c09bebdfa187befb0ae',<br> u'progress_report': {},<br> u'result': None,<br> u'spawned_tasks': [],<br> u'start_time': None,<br> u'state': u'waiting',<br> u'tags': [u'pulp:action:consumer_<wbr>content_applicability_<wbr>regeneration'],<br> u'task_id': u'61d0eabc-5007-43e2-9646-<wbr>0a1fd987efc3',<br> u'task_type': u'pulp.server.managers.<wbr>consumer.applicability.<wbr>regenerate_applicability_for_<wbr>consumers',<br> u'traceback': None,<br> u'worker_name': None}<br><br><br></div>For monitoring purposes, I'd really like to know how long that task has been waiting for. I see no way to get that info.<br><br><br></div>Thanks,<br></div>Grant<br></div>
<br>______________________________<wbr>_________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/pulp-list</a><br></blockquote></div><br></div>