Skip to content

Commit e3183f7

Browse files
tarrowdati18
andauthored
Update app/Jobs/ElasticSearchAliasInit.php
Co-authored-by: Dat WMDE <dat.nguyen@wikimedia.de>
1 parent 97fb50c commit e3183f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/Jobs/ElasticSearchAliasInit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(int $wikiId, string $esHost, ?string $sharedPrefix =
3737
public function middleware(): array {
3838
return [
3939
// Only allow one job per ES host to run at a time to avoid DoSing the ES cluster with alias updates
40-
new WithoutOverlapping("elasticsearch-alias-init-{$this->esHost}")->releaseAfter(15),
40+
(new WithoutOverlapping("elasticsearch-alias-init-{$this->esHost}"))->releaseAfter(15),
4141
];
4242
}
4343

0 commit comments

Comments
 (0)