{% extends main.html %}
{% block content %}
{% set ws = workers[Worker] %}
{% set worker_list = [ws] %}
    
 Worker: {{ ws.address }} 
      {% include "worker-table.html" %}
    
      
        
           In Memory 
          
            
              | Task | Bytes | 
            {% for ts in ws.has_what %}
            
              | {{ts.key}} | {{format_bytes(ts.nbytes)}} | 
            {% end %}
          
         
       
      
        
           Processing 
          Call Stacks
          
            
                | Task | Priority | 
            {% for ts in sorted(ws.processing, key=lambda ts: ts.priority) %}
            
                | {{ts.key}} | {{ts.priority }} | 
            {% end %}
          
         
       
     
    {% if ws.resources %}
    
       Resources 
      
        
            | Resource | Consumed | Total | 
        {% for resource in ws.resources %}
        
            | {{ resource }} | {{ ws.used_resources[resource] }} | {{ ws.resources[resource] }} | 
        {% end %}
      
     
    {% end %}
{% end %}