Page MenuHomePhabricator

Periodically run purgeExpiredBlocks.php maintenance script
Closed, ResolvedPublic

Description

Following on from T257393: Local block of 180.214.232.49 not expiring on outreach.wikimedia, and the script run to fix this, we should be running this perodically/frequently to clear up blocks on wikis with lower traffic (like we do for other similar activities where they depend on higher traffic)

Event Timeline

Reedy changed the task status from Open to Stalled.Jul 8 2020, 4:12 PM

Stalling until next weeks train has been run and the script is then on all WMF deployed MW branches

herron triaged this task as Medium priority.Jul 27 2020, 1:40 PM
DannyS712 changed the task status from Stalled to Open.Mar 14 2021, 2:41 AM

Should have been unstalled a while ago

Change 776349 had a related patch set uploaded (by Zabe; author: Zabe):

[operations/puppet@production] Periodically run purgeExpiredBlocks.php on small wikis

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

Change 776349 merged by Dzahn:

[operations/puppet@production] Periodically run purgeExpiredBlocks.php on small wikis

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

Mentioned in SAL (#wikimedia-operations) [2022-05-02T18:24:47Z] <mutante> [mwmaint1002:~] $ sudo systemctl start mediawiki_job_purge_expired_blocks - starting new timer for T257473

[mwmaint1002:~] $ sudo systemctl status mediawiki_job_purge_expired_blocks
● mediawiki_job_purge_expired_blocks.service - MediaWiki periodic job purge_expired_blocks
   Loaded: loaded (/lib/systemd/system/mediawiki_job_purge_expired_blocks.service; static; vendor preset: enabled)
   Active: inactive (dead) since Mon 2022-05-02 18:26:54 UTC; 13s ago
  Process: 21701 ExecStart=/usr/local/bin/mw-cli-wrapper /usr/local/bin/foreachwikiindblist /srv/mediawiki/dblists/small.dblist maintenance/purgeExpiredBlocks.php (code=exited, status=0/SUCCESS)
 Main PID: 21701 (code=exited, status=0/SUCCESS)

May 02 18:26:53 mwmaint1002 mediawiki_job_purge_expired_blocks[21701]: zuwikibooks
May 02 18:26:53 mwmaint1002 mediawiki_job_purge_expired_blocks[21701]: -----------------------------------------------------------------
May 02 18:26:53 mwmaint1002 mediawiki_job_purge_expired_blocks[21701]: zuwikibooks:  Purging expired blocks...
May 02 18:26:53 mwmaint1002 mediawiki_job_purge_expired_blocks[21701]: zuwikibooks:  Done purging expired blocks.
May 02 18:26:53 mwmaint1002 mediawiki_job_purge_expired_blocks[21701]: -----------------------------------------------------------------
May 02 18:26:53 mwmaint1002 mediawiki_job_purge_expired_blocks[21701]: zuwiktionary
May 02 18:26:53 mwmaint1002 mediawiki_job_purge_expired_blocks[21701]: -----------------------------------------------------------------
May 02 18:26:54 mwmaint1002 mediawiki_job_purge_expired_blocks[21701]: zuwiktionary:  Purging expired blocks...
May 02 18:26:54 mwmaint1002 mediawiki_job_purge_expired_blocks[21701]: zuwiktionary:  Done purging expired blocks.
May 02 18:26:54 mwmaint1002 systemd[1]: mediawiki_job_purge_expired_blocks.service: Succeeded.
Dzahn claimed this task.
[mwmaint1002:~] $ sudo systemctl status mediawiki_job_purge_expired_blocks.timer
● mediawiki_job_purge_expired_blocks.timer - Periodic execution of mediawiki_job_purge_expired_blocks.service
   Loaded: loaded (/lib/systemd/system/mediawiki_job_purge_expired_blocks.timer; enabled; vendor preset: enabled)
   Active: active (waiting) since Mon 2022-05-02 18:20:22 UTC; 7min ago
  Trigger: Tue 2022-05-03 05:00:00 UTC; 10h left