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