Merge lp://staging/~doanac/lava-scheduler/5-longest-jobs into lp://staging/lava-scheduler
Proposed by
Andy Doan
Status: | Merged |
---|---|
Approved by: | Michael Hudson-Doyle |
Approved revision: | 199 |
Merged at revision: | 198 |
Proposed branch: | lp://staging/~doanac/lava-scheduler/5-longest-jobs |
Merge into: | lp://staging/lava-scheduler |
Diff against target: |
43 lines (+17/-0) 2 files modified
lava_scheduler_app/templates/lava_scheduler_app/reports.html (+11/-0) lava_scheduler_app/views.py (+6/-0) |
To merge this branch: | bzr merge lp://staging/~doanac/lava-scheduler/5-longest-jobs |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Linaro Validation Team | Pending | ||
Review via email: mp+115422@code.staging.launchpad.net |
Description of the change
simple report to show 5 longest running jobs
To post a comment you must log in.
I think you should consider the case when there are no running jobs --
it does happen! -- and just display "no jobs running" or something in
that situation.
Cheers,
mwh
Andy Doan <email address hidden> writes:
> Andy Doan has proposed merging lp:~doanac/lava-scheduler/5-longest-jobs into lp:lava-scheduler. /code.launchpad .net/~doanac/ lava-scheduler/ 5-longest- jobs/+merge/ 115422 /code.launchpad .net/~doanac/ lava-scheduler/ 5-longest- jobs/+merge/ 115422 _app/templates/ lava_scheduler_ app/reports. html' app/templates/ lava_scheduler_ app/reports. html 2012-06-16 03:48:18 +0000 app/templates/ lava_scheduler_ app/reports. html 2012-07-17 19:18:25 +0000 {job.get_ absolute_ url}}"> {{job.id} }</a>: {{job.start_ time}}< /li> _app/views. py' app/views. py 2012-06-26 01:49:31 +0000 app/views. py 2012-07-17 19:18:25 +0000 range(10) ): week_report. append( job_report( week*-7- 7, week*-7, True)) report. append( job_report( week*-7- 7, week*-7, False)) objects. filter( by('start_ time')[ :5] _app/reports. html", day_report' : health_day_report, crumb_trail' : BreadCrumbTrail .leading_ to(index) , request) )
>
> Requested reviews:
> Linaro Validation Team (linaro-validation)
>
> For more details, see:
> https:/
>
> simple report to show 5 longest running jobs
> --
> https:/
> You are subscribed to branch lp:lava-scheduler.
> === modified file 'lava_scheduler
> --- lava_scheduler_
> +++ lava_scheduler_
> @@ -142,4 +142,11 @@
> </script>
> </div>
>
> +<h2>Longest Running Jobs</h2>
> +<ul>
> +{% for job in long_running %}
> + <li><a href="{
> +{% endfor %}
> +</ul>
> +
> {% endblock %}
>
> === modified file 'lava_scheduler
> --- lava_scheduler_
> +++ lava_scheduler_
> @@ -232,6 +232,11 @@
> for week in reversed(
> health_
> job_week_
> +
> + long_running = TestJob.
> + status__in = [TestJob.RUNNING, TestJob.CANCELING]
> + ).order_
> +
> return render_to_response(
> "lava_scheduler
> {
> @@ -239,6 +244,7 @@
> 'health_
> 'job_week_report': job_week_report,
> 'job_day_report': job_day_report,
> + 'long_running': long_running,
> 'bread_
> },
> RequestContext(