{% extends "base.html" %} {% set active_page = 'worksets' %} {% block title %}Workset {{ workset.workset_id[:12] }}... - Ursa Customer Portal{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% if workset.state == 'in_progress' %}
Processing Progress {{ workset.progress | default(0) }}%

Current Step: {{ (workset.progress_step or workset.current_step or 'initializing') | replace('_', ' ') | title }} {% if workset.progress_message %} - {{ workset.progress_message }} {% endif %}

{% if workset.cluster_name %}

Cluster: {{ workset.cluster_name }}

{% endif %}
{% if workset.started_at %}

Started: {{ workset.started_at }}

{% endif %}
{% endif %} {% if workset.state == 'error' and workset.error_message %}
Processing Error

{{ workset.error_message }}

{% endif %}

Workset Information

{% if workset.workset_name %}
Workset Name {{ workset.workset_name }}
{% endif %}
Customer {{ workset.customer_id | default('Unknown') }}
Type {% set wtype = workset.workset_type | default('ruo') | lower %} {% if wtype == 'clinical' %}Clinical {% elif wtype == 'lsmc' %}LSMC {% else %}RUO{% endif %}
Pipeline {{ workset.pipeline_type | default('germline') | title }}
Reference {{ workset.reference_genome | default('GRCh38') }}
Priority {{ workset.priority | default('normal') | title }}
Created {{ workset.created_at[:16] | replace('T', ' ') if workset.created_at else 'N/A' }}
{% if workset.started_at %}
Started {{ workset.started_at[:16] | replace('T', ' ') if workset.started_at else 'N/A' }}
{% endif %} {% if workset.finished_at %}
Finished {{ workset.finished_at[:16] | replace('T', ' ') if workset.finished_at else 'N/A' }}
{% endif %} {% if workset.cluster_name %}
Cluster {{ workset.cluster_name }}
{% endif %}
S3 Location {% if workset.results_s3_uri %}{{ workset.results_s3_uri }}{% elif workset.s3_bucket %}s3://{{ workset.s3_bucket }}/{{ workset.s3_prefix }}{% else %}Not available{% endif %}
{% if workset.lock_owner %}
Lock {{ workset.lock_owner }}
{% endif %}

Compute Cost

${{ "%.2f"|format(workset.compute_cost | default(workset.cost_usd | default(0))) }}
Pipeline execution cost

Resources

vCPU-hrs: {{ workset.vcpu_hours | default(0) }}
Mem GB-hrs: {{ workset.memory_gb_hours | default(0) }}
Storage: {% if workset.storage_available %} {{ workset.storage_human | default('N/A') }} {% elif workset.state == 'complete' %} N/A {% elif workset.state == 'in_progress' %} Calculating... {% else %} {% endif %}
Duration: {% if workset.duration_formatted %} {{ workset.duration_formatted }} {% elif workset.duration %} {{ workset.duration }} {% else %} {% endif %}
{% if workset.storage_available and workset.state in ['complete', 'error', 'archived'] %}

Storage Cost

Daily: ${{ "%.4f"|format(workset.storage_cost_daily | default(0)) }}/day ({{ workset.storage_class | default('S3 Standard') }})
Total: ${{ "%.2f"|format(workset.storage_cost_total | default(0)) }} ({{ workset.storage_days | default(0) }} days)
{% endif %} {% if workset.storage_available and workset.state in ['complete', 'error', 'archived'] %}

Transfer Cost

Internet: {% if workset.transfer_cost_internet >= 1 %} ${{ "%.2f"|format(workset.transfer_cost_internet | default(0)) }} {% else %} ${{ "%.4f"|format(workset.transfer_cost_internet | default(0)) }} {% endif %} ($0.09/GB)
Cross-Region: {% if workset.transfer_cost_cross_region >= 1 %} ${{ "%.2f"|format(workset.transfer_cost_cross_region | default(0)) }} {% else %} ${{ "%.4f"|format(workset.transfer_cost_cross_region | default(0)) }} {% endif %} ($0.02/GB)
Same-Region: {% if workset.transfer_cost_same_region >= 1 %} ${{ "%.2f"|format(workset.transfer_cost_same_region | default(0)) }} {% else %} ${{ "%.4f"|format(workset.transfer_cost_same_region | default(0)) }} {% endif %} ($0.01/GB)
{% endif %} {% if workset.execution_cluster_name or workset.execution_s3_bucket or workset.results_s3_uri %}

Execution

{% if workset.execution_cluster_name %}
Cluster: {{ workset.execution_cluster_name }}
{% endif %} {% if workset.execution_cluster_region %}
Region: {{ workset.execution_cluster_region }}
{% endif %} {% if is_admin and workset.execution_headnode_ip %}
IP: {{ workset.execution_headnode_ip }}
{% endif %} {% if workset.results_s3_uri %}
Results: Browse
{% endif %}
{% if is_admin and workset.execution_headnode_ip and workset.execution_cluster_region %}
SSH Command ssh -i ~/.ssh/lsmc-omics-{{ workset.execution_cluster_region }}.pem ubuntu@{{ workset.execution_headnode_ip }} {% if workset.headnode_analysis_path %} cd {{ workset.headnode_analysis_path }} {% endif %}
{% endif %}
{% endif %}

Samples ({{ workset.samples | length if workset.samples else 0 }})

{% if workset.samples %} {% for sample in workset.samples %} {% endfor %} {% else %} {% endif %}
Sample ID Status R1 File R2 File
{{ sample.sample_id }} {{ sample.status }} {{ sample.r1_file | default('N/A') }} {{ sample.r2_file | default('N/A') }}
No samples found

Pipeline Status

Loading pipeline status...

Processing Logs

{{ workset.logs | default('No logs available yet...') }}
{% if workset.metrics %}

Processing Metrics

{% if workset.metrics.samples_processed is defined %}
Samples: {{ workset.metrics.samples_processed }}
{% endif %} {% if workset.metrics.bytes_transferred is defined %}
Transferred: {{ "%.2f"|format(workset.metrics.bytes_transferred / 1073741824) }} GB
{% endif %} {% if workset.metrics.step_durations is defined %}
Step Durations {% for step, duration in workset.metrics.step_durations.items() %}
{{ step | replace('_', ' ') | title }}: {{ duration }}s
{% endfor %}
{% endif %}
{% endif %} {% if workset.state == 'completed' %} {% endif %}
{% endblock %} {% block extra_js %} {% endblock %}