Downloader Workers
Select a worker to manage it and view its logs.
<% if (processes && processes.length) { %>
<% processes.forEach(p => {
let status = (p.status || '').toLowerCase();
let badge = 'bg-secondary';
if (status === 'online' || status === 'running') badge = 'bg-success';
else if (status.includes('stop') || status.includes('exit')) badge = 'bg-danger';
else if (status.includes('launch') || status.includes('start')) badge = 'bg-warning text-dark';
%>
<%= p.name %>
<%= p.status %>
<%= p.execPath %>
pid: <%= p.pid %>
<%= p.uptime %>
<% }) %>
<% } else { %>
No downloader workers found.
<% } %>