Project:Background jobs running

From Inventing aviation
(Redirected from Background jobs running)
Jump to navigation Jump to search

Click this link and look at the last number to see how many wiki pages are in the queue to be updated: http://econterms.net/aero/api.php?action=query&format=json&meta=siteinfo&siprop=statistics

As of Aug 16, 2020, at 7pm the number is over 170,000. That's mostly Cargo tables to be updated.

Explanation discovered at EMWCon 2019:

MediaWiki sites including are configured to do just ONE background wiki record update for each front end click/page change. (Or something like this.)

Upon request to the administrator with shell access, the configuration parameter $wgJobRunRate can be raised. Econterms does not have access to do this but has emailed Yaron to raise it on this site. We can at least try 2 or 5 or 10. Matteo B's site has it set to 100 because, he says, they cannot afford to have customers waiting for routine updates.

It is unclear why the number 1 was ever chosen but on a user-intensive site like Wikipedia, a lot can get done that way. Aero wiki is not very user-intensive ; it's a database mainly, with relatively few front end searches or edits per day. So (econterms believes) it is likely to be harmless to jack this number up.

James Montalvo started an extension that will chart the number of background jobs over time. More on this soon.

Possibly this extension should be for admins only.

One thing for this extensions should expose is the setting of $wgJobRunRate, so as to help diagnose the problem if a ReplaceText isn't getting done.

Another thing: put this documentation with the ReplaceText extension doc.

Fold this text in: ReplaceText can take a while. I would like a Special page that showed me which jobs are in the queue -- when each job started and what it was asked to do. and show and explain $wgjobsrunrate

  • and show and explain any other relevant parameter
  • show recent completed jobs and current jobs in the queue

http://econterms.net/aero/api.php?action=query&format=json&meta=siteinfo&siprop=statistics

Example return: {"batchcomplete":"","query":{"statistics":{"pages":32247,"articles":28659,"edits":171560,"images":1075,"users":4,"activeusers":3,"admins":2,"jobs":2300}}}