aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/jobs
diff options
context:
space:
mode:
Diffstat (limited to 'gn2/wqflask/templates/jobs')
-rw-r--r--gn2/wqflask/templates/jobs/debug.html42
-rw-r--r--gn2/wqflask/templates/jobs/no-such-job.html13
2 files changed, 55 insertions, 0 deletions
diff --git a/gn2/wqflask/templates/jobs/debug.html b/gn2/wqflask/templates/jobs/debug.html
new file mode 100644
index 00000000..828ab1cc
--- /dev/null
+++ b/gn2/wqflask/templates/jobs/debug.html
@@ -0,0 +1,42 @@
+{%extends "base.html"%}
+{%block title%}Debug Job{% endblock%}
+{%block css%}
+{%endblock%}
+
+{%block content%}
+<h1>Debug Job</h1>
+
+The following show details for job "{{job_id}}" to assist in debugging.
+
+<h2>Metadata</h2>
+
+<ul>
+ <li><strong>Job ID:</strong> {{job_id}}</li>
+ <li><strong>Command:</strong> <code>{{command}}</code></li>
+ <li><strong>Received:</strong> {{request_received_time}}</li>
+ <li><strong>Return Code:</strong> {{return_code}}</li>
+ <li><strong>Completion Status:</strong> {{completion_status}}</li>
+ <li><strong>Status:</strong> {{status}}</li>
+</ul>
+
+<h2>STDERR</h2>
+
+<div style="background-color: black; color: red;">
+ {%for line in stderr:%}
+ <p>{{line}}</p>
+ {%endfor%}
+</div>
+
+<h2>STDOUT</h2>
+
+<div style="background-color: black; color: green;">
+ {%for line in stdout:%}
+ <p>{{line}}</p>
+ {%endfor%}
+</div>
+
+
+{%endblock%}
+
+{%block js%}
+{%endblock%}
diff --git a/gn2/wqflask/templates/jobs/no-such-job.html b/gn2/wqflask/templates/jobs/no-such-job.html
new file mode 100644
index 00000000..6fe7d014
--- /dev/null
+++ b/gn2/wqflask/templates/jobs/no-such-job.html
@@ -0,0 +1,13 @@
+{%extends "base.html"%}
+{%block title%}No Such Job{% endblock%}
+{%block css%}
+{%endblock%}
+
+{%block content%}
+<h1>No Such Job</h1>
+
+<p>The job with id <strong>{{job_id | string}}</strong> does not exist</p>
+{%endblock%}
+
+{%block js%}
+{%endblock%}