{% extends "base.html" %}
{% block title %}Dataset {{ dataset_num }} - IceProd{% end %}
{% block description %}{{ dataset["description"] }}{% end %}
{% block sidebar %}
{% end %}
{% block page_title %}Dataset {{ dataset_num }} Details{% end %}
{% block body %}
Settings
{% for k in dataset %}
| {{ k }} |
{% if (k == "priority") %}
{% if (current_user) %}
{% else %}{{ dataset[k] }}{% end %}
{% else %}{{ dataset[k] }}{% end %} |
{% end %}
{% if (current_user) %}
{% set action_url = f'/dataset/{url_escape(dataset_id)}/actions' %}
{% if dataset.get('status') == 'obsolete' %}
{% module ActionForm(url=action_url, action='suspend', label='Restore', confirm_msg='Restore this dataset? It will be set to suspended.') %}
{% else %}
{% module ActionForm(url=action_url, action='reset', label='Reset', confirm_msg='Reset all incomplete jobs and tasks in this dataset? Running tasks will be restarted.') %}
{% module ActionForm(url=action_url, action='hard_reset', label='Hard Reset', confirm_msg='Hard reset all jobs and tasks in this dataset?') %}
{% module ActionForm(url=action_url, action='suspend', label='Suspend', confirm_msg='Suspend this dataset?') %}
{% module ActionForm(url=action_url, action='truncate', label='Truncate', confirm_msg='Truncate this dataset?') %}
{% module ActionForm(url=action_url, action='obsolete', label='Mark Obsolete', confirm_msg='Mark this dataset obsolete? Running jobs and tasks will be suspended, and it will be hidden from the dataset list.') %}
{% end %}
{% module ActionForm(url=action_url, action='delete_logs', label='Delete Logs', confirm_msg='Delete all logs for this dataset? This cannot be undone.') %}
{% end %}
Jobs
{% for s in jobs %}
{% end %}
Tasks
{% for s in tasks %}
{% end %}
Task Status by Task Name
{% if task_info %}
{% for key in list(task_info.values())[0] %}
| {{ key.capitalize() }} |
{% end %}
{% for t in task_info %}
{% for value in task_info[t].values() %}
| {{ value }} |
{% end %}
{% end %}
{% end %}
Completion Statistics
| Name |
Avg/stddev (hours) |
Max/min (hours) |
Eff |
{% for t in task_stats %}
{% if 'avg_hrs' in task_stats[t] and task_stats[t]['avg_hrs'] is not None and 'stddev_hrs' in task_stats[t] and task_stats[t]['stddev_hrs'] is not None %}
| {{ t }} |
{{ '{:0.2f}'.format(task_stats[t]['avg_hrs']) }} / {{ '{:0.2f}'.format(task_stats[t]['stddev_hrs']) }} |
{{ '{:0.2f}'.format(task_stats[t]['max_hrs']) }} / {{ '{:0.2f}'.format(task_stats[t]['min_hrs']) }} |
{{ '{:d}'.format(int(task_stats[t]['efficiency']*100)) }}% |
{% end %}
{% end %}
{% end %}