We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3733962 commit 26a12edCopy full SHA for 26a12ed
1 file changed
app/Jobs/PollForMediaWikiJobsJob.php
@@ -18,7 +18,9 @@ public function handle(MediaWikiHostResolver $mwHostResolver): void {
18
$this->mwHostResolver = $mwHostResolver;
19
$allWikiDomains = Wiki::all()->pluck('domain');
20
foreach ($allWikiDomains as $wikiDomain) {
21
- if ($this->hasPendingJobs($wikiDomain)) {
+ $wiki = Wiki::firstWhere('domain', $wikiDomain);
22
+
23
+ if ($this->hasPendingJobs($wikiDomain) && !$wiki->isReadOnly()) {
24
$this->enqueueWiki($wikiDomain);
25
}
26
0 commit comments