blob: c692ae89bbd086e0d597ae1f0c34a86c489d3cde (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
{% extends "base.html" %}
{% block title %}
{{ application_name }} Development Console - Cron Viewer{% endblock %}
{% block head %}
<style type="text/css">{% include "css/cron.css" %}</style>
{% endblock %}
{% block breadcrumbs %}
<span class="item"><a href="">Cron Viewer</a></span>
{% endblock %}
{% block body %}
<h3>Cron Jobs</h3>
{% if message %}
<div class="ah-cron-message">
{{ message|escape }}
</div>
{% endif %}
{% if cronjobs %}
<table id="ah-cron-jobs" class="ae-table ae-table-striped">
<colgroup>
<col style="width:60%">
<col>
</colgroup>
<thead>
<tr>
<th>Cron Job</th>
<th>Schedule</th>
</tr>
</thead>
<tbody>
{% for job in cronjobs %}
<tr class="{% cycle ae-odd,ae-even %}">
<td valign="top">
<h3>{{ job.url|escape }}</h3>
<p>
{{ job.description|escape }}
</p>
</td>
<td valign="top">
<table class="ae-table">
<tr>
<td>
<strong>{{ job.schedule|escape }}</strong>
</td>
<td class="ah-cron-test">
<a href="{{ job.url }}">Test this job</a>
</td>
</tr>
</table>
{% if job.timezone %}
<strong>Timezone: {{ job.timezone }}</strong>
<div class="ah-cron-message">
Schedules with timezones won't be calculated correctly here. Use the
appcfg.py cron_info command to view the next run times for this schedule,
after installing the pytz package.
</div>
{% endif %}
<div class="ah-cron-times">
In production, this would run at these times:
<ol>
{% for run in job.times %}
<li>
{{ run.runtime }} <span class="ae-unimportant">{{ run.difference }} from now</span>
</li>
{% endfor %}
</ol>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
This application doesn't define any cron jobs. See the documentation for more.
{% endif %}
{% endblock %}
|