Page MenuHomePhabricator

Create cron job to update query page Special:OrphanedTimedText on wikis with $wgEnableLocalTimedText = true
Closed, ResolvedPublic

Description

When a wiki has $wgEnableLocalTimedText= true than the corresponding special page should be updated with a cron job.
The cron job is needed because the special page itself is marked as expensive

Affected wikis:

'wmgEnableLocalTimedText' => [
	'default' => false,
	'commonswiki' => true,
	'testcommonswiki' => true,
	'enwiki' => true,
	'ptwiki' => true, // T60984
	'test2wiki' => true,
	'testwiki' => true,
	'foundationwiki' => true,
],

If no cron job is set up the special page should be listed in $wgDisableQueryPageUpdate to get a message on the special page.

If a cron job is set up the special page should be listed in $wgDisableQueryPageUpdate with the corresponding run mode to get a message on the special page

Event Timeline

Change 697189 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/TimedMediaHandler@master] Fix onwgQueryPages hook handler

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

Umherirrender changed the task status from Open to Stalled.May 30 2021, 8:32 PM

The query page is not part of wgDisableQueryPageUpdate and should be part of the regular run every 3 days, but that does not work, properly because there is a bug in the register of the special page.

Let's look if that could be fixed and if a cron is needed after the query is run.

note: if a 'periodic job' is needed these are not literally cron jobs anymore, they are nowadays systemd timers and in other, non-mediawiki, places we are still in the process of converting from cron to systemd. The puppet class 'profile::mediawiki::periodic_job' should be used for this, that will create a service and a timer on the mwmaint hosts.

Change 697189 merged by jenkins-bot:

[mediawiki/extensions/TimedMediaHandler@master] Fix onwgQueryPages hook handler

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

Umherirrender claimed this task.

https://en.wikipedia.org/wiki/Special:OrphanedTimedText shows per now: " was last updated 16:23, 1 July 2021."

That means the special page is part of the regular run every 3 day and does not need an own job run.