Merge pull request #1497 from helsinki-systems/feat/show-new-q-runner-status

Show queue runner v2 status
This commit is contained in:
Janne Heß
2025-07-17 21:30:36 +00:00
committed by GitHub
5 changed files with 59 additions and 32 deletions

View File

@@ -189,8 +189,10 @@ sub machines :Local Args(0) {
my ($self, $c) = @_;
my $machines = getMachines;
# Add entry for localhost.
$machines->{''} //= {};
# Add entry for localhost. The implicit addition is not needed with queue runner v2
if (not $c->config->{'queue_runner_endpoint'}) {
$machines->{''} //= {};
}
delete $machines->{'localhost'};
my $status = $c->model('DB::SystemStatus')->find("queue-runner");