##// END OF EJS Templates
git: use force fetch and update for target ref. This solves a case...
git: use force fetch and update for target ref. This solves a case when in PRs a target is force updated and is out of sync. Before we used a pull which --ff-only fails obviosly because two are out of sync. This change uses new logic that resets the target branch according to the source target branch allowing smooth merge simulation.

File last commit:

r2540:370f15d3 default
r2784:e8c62649 default
Show More
settings_process_management_data.mako
91 lines | 3.1 KiB | application/x-mako | MakoHtmlLexer
/ rhodecode / templates / admin / settings / settings_process_management_data.mako
process-management: enable auto-refresh to track usage live.
r2500
<table id="procList">
<%
def get_name(proc):
process-management: use safer way to extract data for processes....
r2540 if 'vcsserver.ini' in proc.cmd:
process-management: enable auto-refresh to track usage live.
r2500 return 'VCSServer'
process-management: use safer way to extract data for processes....
r2540 elif 'rhodecode.ini' in proc.cmd:
process-management: enable auto-refresh to track usage live.
r2500 return 'RhodeCode'
process-management: use safer way to extract data for processes....
r2540 return proc.name
process-management: enable auto-refresh to track usage live.
r2500 %>
<tr>
<td colspan="8">
<span id="processTimeStamp">${h.format_date(h.datetime.now())}</span>
</td>
</tr>
% for proc in c.gunicorn_processes:
process-management: use safer way to extract data for processes....
r2540 % if proc.children:
process-management: enable auto-refresh to track usage live.
r2500 <tr>
<td>
<code>
${proc.pid} - ${get_name(proc)}
</code>
</td>
<td>
<a href="#showCommand" onclick="$('#pid'+${proc.pid}).toggle();return false"> command </a>
<code id="pid${proc.pid}" style="display: none">
process-management: use safer way to extract data for processes....
r2540 ${proc.cmd}
process-management: enable auto-refresh to track usage live.
r2500 </code>
</td>
<td></td>
<td>
process-management: use safer way to extract data for processes....
r2540 RSS:${h.format_byte_size_binary(proc.mem_rss)}
process-management: enable auto-refresh to track usage live.
r2500 </td>
<td>
process-management: use safer way to extract data for processes....
r2540 VMS:${h.format_byte_size_binary(proc.mem_vms)}
process-management: enable auto-refresh to track usage live.
r2500 </td>
<td>
process-management: use safer way to extract data for processes....
r2540 AGE: ${h.age_component(h.time_to_utcdatetime(proc.create_time))}
process-management: enable auto-refresh to track usage live.
r2500 </td>
<td>
MASTER
processes: add a way to control processes via gunicorn control....
r2503 % if request.GET.get('dev'):
| <a href="#addWorker" onclick="addWorker(${proc.pid}); return false">ADD</a> | <a href="#removeWorker" onclick="removeWorker(${proc.pid}); return false">REMOVE</a>
% endif
process-management: enable auto-refresh to track usage live.
r2500 </td>
</tr>
<% mem_sum = 0 %>
process-management: use safer way to extract data for processes....
r2540 % for proc_child in proc.children:
process-management: enable auto-refresh to track usage live.
r2500 <tr>
<td>
<code>
| ${proc_child.pid} - ${get_name(proc_child)}
</code>
</td>
<td>
<a href="#showCommand" onclick="$('#pid'+${proc_child.pid}).toggle();return false"> command </a>
<code id="pid${proc_child.pid}" style="display: none">
process-management: use safer way to extract data for processes....
r2540 ${proc_child.cmd}
process-management: enable auto-refresh to track usage live.
r2500 </code>
</td>
<td>
process-management: use safer way to extract data for processes....
r2540 CPU: ${proc_child.cpu_percent} %
process-management: enable auto-refresh to track usage live.
r2500 </td>
<td>
process-management: use safer way to extract data for processes....
r2540 RSS:${h.format_byte_size_binary(proc_child.mem_rss)}
<% mem_sum += proc_child.mem_rss %>
process-management: enable auto-refresh to track usage live.
r2500 </td>
<td>
process-management: use safer way to extract data for processes....
r2540 VMS:${h.format_byte_size_binary(proc_child.mem_vms)}
process-management: enable auto-refresh to track usage live.
r2500 </td>
<td>
process-management: use safer way to extract data for processes....
r2540 AGE: ${h.age_component(h.time_to_utcdatetime(proc_child.create_time))}
process-management: enable auto-refresh to track usage live.
r2500 </td>
<td>
<a href="#restartProcess" onclick="restart(this, ${proc_child.pid});return false">
restart
</a>
</td>
</tr>
% endfor
<tr>
process-management: use safer way to extract data for processes....
r2540 <td colspan="2"><code>| total processes: ${len(proc.children)}</code></td>
process-management: enable auto-refresh to track usage live.
r2500 <td></td>
<td><strong>RSS:${h.format_byte_size_binary(mem_sum)}</strong></td>
<td></td>
</tr>
<tr><td> <code> -- </code> </td></tr>
% endif
% endfor
</table>