%inherit file="base.html"/>
##${applications}
Applications
% for app in applications:
${application(app)}
% endfor
Add Application
Add Application
Old Applications
Toggle
% for app in history:
${application(app, disabled=True)}
% endfor
<%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:
% 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
Q |
Q:a |
Q:f |
Q:s |
% if not app['system']:
state |
% endif
queue |
entry |
procs |
Trace |
% for q, com in app['commands'].iteritems():
${command(app, com, disabled=disabled)}
% endfor
%def>
<%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>
<%def name="state(obj, type)">
% if obj['state'] == 'stopped':
Stop
|
Start
% else:
Stop
|
Start
% endif
%def>