Skip to content

Commit

Permalink
Fix QueryserviceNamespace provisioning
Browse files Browse the repository at this point in the history
Broken recently in c259db0
  • Loading branch information
addshore committed Dec 8, 2020
1 parent 41e7564 commit 1a4c08b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/Jobs/ProvisionQueryserviceNamespaceJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ public function __construct($namespace = null, $maxFree = null)
}

private function doesMaxFreeSayWeShouldStop(){
$wikiDbCondition = ['wiki_id' => null,'version' => $this->newSqlFile];
$unassignedDbs = WikiDb::where($wikiDbCondition)->count();
$toCreate = $this->maxFree - $unassignedDbs;
$unassignedQueryserviceNamespaces = QueryserviceNamespace::where('wiki_id', null)->count();
$toCreate = $this->maxFree - $unassignedQueryserviceNamespaces;
return $toCreate === 0;
}

Expand Down

0 comments on commit 1a4c08b

Please sign in to comment.