Page MenuHomePhabricator

manageJobs --action repush-abandoned does not work for JobQueueDB
Closed, ResolvedPublic

Description

The script php maintenance/manageJobs.php --type XXX --action repush-abandoned does nothing in the case the job queue is managed by JobQueueDB (the default).

This is because JobQueueDB::getAllAbandonedJobs is not defined, so the parent method JobQueue::getAllAbandonedJobs is used and it is defined as a placeholder doing nothing.

There is a second sub-issue DivisionByZeroError: Modulo by zero on the line calling $this->getBatchSize() because it is null by default.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 670213 had a related patch set uploaded (by Seb35; owner: Seb35):
[mediawiki/core@master] Implement JobQueueDB::getAllAbandonedJobs

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

Change 670215 had a related patch set uploaded (by Seb35; owner: Seb35):
[mediawiki/core@master] Define a batch size in maintenance/manageJobs.php

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

Change 670215 merged by jenkins-bot:
[mediawiki/core@master] Define a batch size in maintenance/manageJobs.php

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

Change 670213 merged by jenkins-bot:

[mediawiki/core@master] Implement JobQueueDB::getAllAbandonedJobs

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

All merged, is there more to do here or can this be resolved?

Change 681642 had a related patch set uploaded (by Reedy; author: Seb35):

[mediawiki/core@REL1_35] Implement JobQueueDB::getAllAbandonedJobs

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

Change 681643 had a related patch set uploaded (by Reedy; author: Seb35):

[mediawiki/core@REL1_36] Implement JobQueueDB::getAllAbandonedJobs

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

Change 681645 had a related patch set uploaded (by Reedy; author: Seb35):

[mediawiki/core@REL1_35] Define a batch size in maintenance/manageJobs.php

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

Change 681726 had a related patch set uploaded (by Reedy; author: Seb35):

[mediawiki/core@REL1_31] Define a batch size in maintenance/manageJobs.php

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

Change 681728 had a related patch set uploaded (by Reedy; author: Seb35):

[mediawiki/core@REL1_31] Implement JobQueueDB::getAllAbandonedJobs

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

Change 681642 merged by jenkins-bot:

[mediawiki/core@REL1_35] Implement JobQueueDB::getAllAbandonedJobs

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

Change 681645 merged by jenkins-bot:

[mediawiki/core@REL1_35] Define a batch size in maintenance/manageJobs.php

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

Change 681643 merged by jenkins-bot:

[mediawiki/core@REL1_36] Implement JobQueueDB::getAllAbandonedJobs

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

Change 681726 merged by jenkins-bot:

[mediawiki/core@REL1_31] Define a batch size in maintenance/manageJobs.php

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

Change 681728 merged by jenkins-bot:

[mediawiki/core@REL1_31] Implement JobQueueDB::getAllAbandonedJobs

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