{% extends "base.html" %} {% block navbar %} {% module Template("navbar.html", active_tab="tasks") %} {% end %} {% block extra_styles %} {% end %} {% block container %}
| {% raw sort_url("Name", "name", sort_by, params) %}{% end %} {% if 'uuid' in columns %} | UUID{% end %} {% if 'state' in columns %} | {% raw sort_url("State", "state", sort_by, params) %}{% end %} {% if 'args' in columns %} | args{% end %} {% if 'kwargs' in columns %} | kwargs{% end %} {% if 'result' in columns %} | Result{% end %} {% if 'received' in columns %} | {% raw sort_url("Received", "received", sort_by, params) %}{% end %} {% if 'started' in columns %} | {% raw sort_url("Started", "started", sort_by, params) %}{% end %} {% if 'runtime' in columns %} | Runtime{% end %} | 
|---|---|---|---|---|---|---|---|---|
| {{ task.name }}{% end %} {% if 'uuid' in columns %} | {{ task.uuid }}{% end %} {% if 'state' in columns %} | {% if task.state == "SUCCESS" %} {{ task.state }} {% elif task.state == "FAILURE" %} {{ task.state }} {% else %} {{ task.state }} {% end %}{% end %} {% if 'args' in columns %} | {{ task.args }}{% end %} {% if 'kwargs' in columns %} | {{ task.kwargs }}{% end %} {% if 'result' in columns %} | {% if task.state == "SUCCESS" %} {{ task.result }} {% elif task.state == "FAILURE" %} {{ task.exception }} {% end %}{% end %} {% if 'received' in columns %} | {{ humanize(task.received, type=time) }}{% end %} {% if 'started' in columns %} | {{ humanize(task.received, type=time) }}{% end %} {% if 'runtime' in columns %} | {% if task.timestamp and task.started %} {{ '%.2f' % humanize(task.timestamp - task.started) }} sec {% end %}{% end %} {% end %} |