Skip to content

Commit

Permalink
[backend] scheduler: also do dodcheck for containers
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed May 27, 2021
1 parent aa1784c commit 28479aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/BSSched/BuildJob/Docker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ sub check {
if ($state eq 'scheduled') {
my $dods = BSSched::DoD::dodcheck($ctx, $pool, $myarch, @edeps);
return ('blocked', $dods) if $dods;
$dods = BSSched::DoD::dodcheck($ctx, $ctx->{'pool'}, $myarch, map {$_->{'name'}} @cbdep);
return ('blocked', $dods) if $dods;
}
return ($state, $data);
}
Expand Down
2 changes: 2 additions & 0 deletions src/backend/BSSched/BuildJob/KiwiImage.pm
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ sub check {
if ($state eq 'scheduled') {
my $dods = BSSched::DoD::dodcheck($ctx, $pool, $myarch, @edeps);
return ('blocked', $dods) if $dods;
$dods = BSSched::DoD::dodcheck($ctx, $ctx->{'pool'}, $myarch, $cbdep->{'name'}) if $cbdep;
return ('blocked', $dods) if $dods;
}
return ($state, $data);
}
Expand Down

0 comments on commit 28479aa

Please sign in to comment.