Page MenuHomePhabricator

JobRunner - clean up deprecations
Closed, ResolvedPublic

Description

As a part of the parent task the following JobRunner features has been deprecated:

  • No-argument constructor.
  • JobRunner::setLogger and the fact JobRunner implements LoggerAwareInterface.

These should be cleaned up in 1.36

Event Timeline

Removing inactive assignee (Platform Engineering: Please unassign tasks of previous team members.)

Already hard-deprecated - https://gerrit.wikimedia.org/r/c/mediawiki/core/+/793840

No usage of the constructor - https://codesearch.wmcloud.org/search/?q=%5Cbnew%5Cs%2B%5C%5C%3FJobRunner%5Cb&i=nope&files=&excludeFiles=&repos=

the setLogger was directly hard deprecated, finding usage with codesearch is not easy.

Would say it is possible to require the arguments and adding @internal to the constructor

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

[mediawiki/core@master] jobqueue: Remove JobRunner::setLogger and make constructor internal

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

Change 869838 merged by jenkins-bot:

[mediawiki/core@master] jobqueue: Remove JobRunner::setLogger and make constructor internal

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

Umherirrender claimed this task.