{#- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -#} {% set page = 'task_manager' %} {% set sidebar_rel = '../../' %} {% extends 'allura:templates/site_admin.html' %} {% block extra_css %} {% endblock %} {% block content %} {% if not task %} Task not found {% else %} {% if task.state in ['error', 'complete'] %}
{{lib.csrf_token()}}
{% endif %}

Task Details

{% if task.args|length > task.kwargs|length %} {% set indexes = range(task.args|length) %} {% else %} {% set indexes = range(task.kwargs|length) %} {% endif %} {% set kwargs = task.kwargs.items()|list %} {% for i in indexes %} {% if kwargs[i] %} {% else %} {% endif %} {% endfor %}
Name State
{{ task.task_name }} {{ task.state }}
ID Process
{{ task._id }} {{ task.process if task.process }}
Context Time
Project {{ task.project.shortname if task.project }} Queued {{ task.time_queue.strftime('%Y/%m/%d %H:%M:%S') if task.time_queue }}
Mount {{ task.app_config.options.mount_point if task.app_config }} Started {{ task.time_start.strftime('%Y/%m/%d %H:%M:%S') if task.time_start }}
User {{ task.user.username if task.user }} Stopped {{ task.time_stop.strftime('%Y/%m/%d %H:%M:%S') if task.time_stop }}
Args Keyword Args
{{ task.args[i] }} {{ kwargs[i][0] }} {{ kwargs[i][1] }}
Result
{{ task.result }}
{% endif %} {% endblock %}