thirdparty/google_appengine/google/appengine/ext/admin/templates/queues.html
changeset 2413 d0b7dac5325c
equal deleted inserted replaced
2412:c61d96e72e6f 2413:d0b7dac5325c
       
     1 {% extends "base.html" %}
       
     2 
       
     3 {% block title %}
       
     4 {{ application_name }} Development Console - Task Queue Viewer{% endblock %}
       
     5 
       
     6 {% block head %}
       
     7   <style type="text/css">{% include "css/queues.css" %}</style>
       
     8 {% endblock %}
       
     9 
       
    10 {% block breadcrumbs %}
       
    11   <span class="item"><a href="">Queue Viewer</a></span>
       
    12 {% endblock %}
       
    13 
       
    14 {% block body %}
       
    15 <h3>Task Queues</h3>
       
    16 
       
    17 {% if queues %}
       
    18   <p>
       
    19   Tasks will not run automatically. Select a queue to run tasks manually.
       
    20   </p>
       
    21 
       
    22   <table id="ah-queues" class="ae-table ae-table-striped">
       
    23     <thead>
       
    24       <tr>
       
    25         <th>Queue Name</th>
       
    26         <th>Maximum Rate</th>
       
    27         <th>Bucket Size</th>
       
    28         <th>Oldest Task (UTC)</th>
       
    29         <th>Tasks in Queue</th>
       
    30         <th></th>
       
    31       </tr>
       
    32     </thead>
       
    33     <tbody>
       
    34       {% for queue in queues %}
       
    35         <tr class="{% cycle ae-odd,ae-even %}">
       
    36           <td valign="top">
       
    37             <a href="/_ah/admin/tasks?queue={{ queue.name|escape }}">
       
    38             {{ queue.name|escape }}</a>
       
    39           </td>
       
    40           <td valign="top">
       
    41             {{ queue.max_rate|escape }}
       
    42           </td>
       
    43           <td valign="top">
       
    44             {{ queue.bucket_size|escape }}
       
    45           </td>
       
    46           <td valign="top">
       
    47             {% if queue.oldest_task %}
       
    48               {{ queue.oldest_task|escape }}<br/>
       
    49               ({{ queue.eta_delta|escape }})
       
    50             {% else %}
       
    51               None
       
    52             {% endif %}
       
    53           </td>
       
    54           <td valign="top">
       
    55             {{ queue.tasks_in_queue|escape }}
       
    56           </td>
       
    57           <td valign="top">
       
    58             <form id="flushform" action="/_ah/admin/queues" method="post">
       
    59             <input type="hidden" name="queue" value="{{ queue.name|escape }}"/>
       
    60             <input type="submit" name="action:flushqueue" value="Flush Queue"
       
    61              onclick="return confirm('Are you sure you want to flush all ' +
       
    62                                      'tasks from {{ queue.name|escape }}?');"/>
       
    63             </form>
       
    64           </td>
       
    65         </tr>
       
    66       {% endfor %}
       
    67     </tbody>
       
    68   </table>
       
    69 {% else %}
       
    70   This application doesn't define any task queues. See the documentation for more.
       
    71 {% endif %}
       
    72 
       
    73 
       
    74 {% endblock %}
       
    75