task.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {% extends "basebuildpage.html" %}
  2. {% block pagetitle %}Tasks{% endblock %}
  3. {% block pagetable %}
  4. {% if not tasks %}
  5. <p>No tasks were executed in this build!</p>
  6. {% else %}
  7. <tr>
  8. <th>Order</th>
  9. <th>Task</th>
  10. <th>Recipe Version</th>
  11. <th>Task Type</th>
  12. <th>Checksum</th>
  13. <th>Outcome</th>
  14. <th>Message</th>
  15. <th>Logfile</th>
  16. <th>Time</th>
  17. <th>CPU usage</th>
  18. <th>Disk I/O</th>
  19. <th>Script type</th>
  20. <th>File path</th>
  21. <th>Depends</th>
  22. </tr>
  23. {% for task in tasks %}
  24. <tr class="data">
  25. <td>{{task.order}}</td>
  26. <td><a name="{{task.recipe.name}}.{{task.task_name}}">
  27. <a href="{% url layer_versions_recipes task.recipe.layer_version_id %}#{{task.recipe.name}}">{{task.recipe.name}}</a>.{{task.task_name}}</a></td>
  28. <td>{{task.recipe.version}}</td>
  29. {% if task.task_executed %}
  30. <td>Executed</td>
  31. {% else %}
  32. <td>Prebuilt</td>
  33. {% endif %}
  34. <td>{{task.sstate_checksum}}</td>
  35. <td>{{task.get_outcome_display}}{% if task.provider %}</br>(by <a href="#{{task.provider.recipe.name}}.{{task.provider.task_name}}">{{task.provider.recipe.name}}.{{task.provider.task_name}}</a>){% endif %}</td>
  36. <td><p>{{task.message}}</td>
  37. <td><a target="_fileview" href="file:///{{task.logfile}}">{{task.logfile}}</a></td>
  38. <td>{{task.elapsed_time}}</td>
  39. <td>{{task.cpu_usage}}</td>
  40. <td>{{task.disk_io}}</td>
  41. <td>{{task.get_script_type_display}}</td>
  42. <td><a target="_fileview" href="file:///{{task.recipe.file_path}}">{{task.recipe.file_path}}</a></td>
  43. <td>
  44. <div style="height: 3em; overflow:auto">
  45. {% for tt in task.task_dependencies_task.all %}
  46. <a href="#{{tt.depends_on.recipe.name}}.{{tt.depends_on.task_name}}">
  47. {{tt.depends_on.recipe.name}}.{{tt.depends_on.task_name}}</a><br/>
  48. {% endfor %}
  49. </div>
  50. </td>
  51. </tr>
  52. {% endfor %}
  53. {% endif %}
  54. {% endblock %}