Page MenuHomePhabricator

Make JobQueueGroup/JobQueue error out on write ops in read-only mode
Closed, ResolvedPublic

Description

Read-only mode can work the same way as LBFactory and FileBackend, where the flag is passed down the object construction graph.

It's useful to have:
a) App level read-only errors instead redis error spam about read-only mode
b) Read-only mode on the app level to reduce traffic for background maintenance sometimes
c) The ability for code to check if the queue is read-only to have smarter behavior

Event Timeline

Change 279664 had a related patch set uploaded (by Aaron Schulz):
Enforce $wgReadOnly for job queues

https://gerrit.wikimedia.org/r/279664

aaron triaged this task as Medium priority.Mar 28 2016, 6:44 PM
aaron moved this task from Inbox, needs triage to Doing (old) on the Performance-Team board.

Change 279664 merged by jenkins-bot:
Enforce $wgReadOnly for job queues

https://gerrit.wikimedia.org/r/279664