<%inherit file="base.html"/> ##${applications}

Applications

% for app in applications: ${application(app)} % endfor

Add Application

Add Application

Old Applications

Toggle <%def name="application(app, disabled=False)">

${app['name']} (${app['group']}) % if 'terminated' in app: - Terminated: ${app['terminated']} UTC % endif

% if disabled: todo: option to kill processes still running % else:
Trace % if not app['system']: | ${state(app, 'app')} | Remove App ## | Update | Update % endif
% endif
# workers: ${app['num_workers']}
version: ${app['version']}
Data Root: ${app['data_root']}
env: ${app['environment']}
$PYTHONPATH additions: ${app['python_paths']}
packages: ${app['python_paths']}
## Commands

Commands

% if not app['system']: % endif % for q, com in app['commands'].iteritems(): ${command(app, com, disabled=disabled)} % endfor
Q Q:a Q:f Q:s state queue entry procs Trace
<%def name="command(app, com, disabled=False)"> ${com['queued']} ${com['active']} % if not disabled: ${com['failed']} % endif ${com['success']} % if not app['system']: % if disabled: ${com['state']} % else: ${state(com, 'command')} % endif % endif ${com['queue_full']} ${com['entry']} ${com['processes']} % if not disabled: Trace % endif <%def name="state(obj, type)"> % if obj['state'] == 'stopped': Stop | Start % else: Stop | Start % endif