Skip to content

Commit

Permalink
mxproxmox: Allow 4 parallel jobs
Browse files Browse the repository at this point in the history
donald committed Jun 5, 2024
1 parent 18f256c commit 996c284
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mxproxmox/mxproxmox
Original file line number Diff line number Diff line change
@@ -101,11 +101,11 @@ sub server_available_bytes {
}


# return true if there are less than 3 jobs running on the server
# return true if there are less than 4 jobs running on the server
#
sub server_has_free_slots {
my $r = get('nodes/localhost/tasks?running=1');
return @{$r->{data}} < 3;
return @{$r->{data}} < 4;
for my $j ( @{$r->{data}} ) {
print "active job: ",$j->{worker_id},"\n";
}

0 comments on commit 996c284

Please sign in to comment.