X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupUploadStash.php;h=480059d25cfc96687fa634f625d035ccced7ddf7;hb=0fd1a6b62b31be3abd51ca89c98897c8f5b1fd75;hp=24b63a8bab9ec8fce9050fc325f02548e1d53d55;hpb=e1ecdea0b1272a2444547128437507673e19525c;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupUploadStash.php b/maintenance/cleanupUploadStash.php index 24b63a8bab..480059d25c 100644 --- a/maintenance/cleanupUploadStash.php +++ b/maintenance/cleanupUploadStash.php @@ -37,7 +37,7 @@ class UploadStashCleanup extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Clean up abandoned files in temporary uploaded file stash"; + $this->addDescription( 'Clean up abandoned files in temporary uploaded file stash' ); $this->setBatchSize( 50 ); } @@ -87,6 +87,7 @@ class UploadStashCleanup extends Maintenance { $this->output( "Failed removing stashed upload with key: $key ($type)\n" ); } if ( $i % 100 == 0 ) { + wfWaitForSlaves(); $this->output( "$i\n" ); } }