Issue:
For reasons not clear, we need to limit the amount of jobs per request to MediaWiki to 2 (https://www.mediawiki.org/wiki/Manual:Job_queue). When someone does a lot of edits, but no reads, we can end up with a backlog of half a million jobs per Wiki. For users, they experience this as their data not appearing in their Wikibase, when in fact they are there, just not indexed in Search. Examples: T330069#8632297
We need to automate the process of running the jobs that are stuck in the backlog, which we now do manually.
There are probably a few options to implement this:
1. have a new k8s deployment checking all wikis and running their jobs as needed in the same pod
2. have a new k8s deployment checking for mediawiki jobs and then creating kubernetes jobs to run them
3. use the platform api queue to create kubernetes jobs to run the mediawiki jobs < THE WINNER
4. use the platform api queue to run them in existing mediawiki pods
AC:
- One Wiki doesn't block another
- Any change from an individual user will not appear later than 3 mins
- Don't ddos ourselves
- Needs to be run per Wiki, since the backlog gets stuck per Wiki