Manual talk:ManageJobs.php

About this board

What would be an abandoned job?

3
Tenbergen (talkcontribs)

Just saw a link to this pop up in the runJobs page. What would be an abandoned job, how would I know if I have any and need to manage them? Tenbergen (talk) 14:35, 21 April 2021 (UTC)

Jon Harald Søby (WMNO) (talkcontribs)

An abandoned job is apparently a job that the job runner has stopped trying to execute because it failed too many times (the default max number of attempts, which I don't know how to change except by editing JobQueue.php directly, is 3).

You can see if you have any by running showJobs.php --group, and it will tell you which types are abandoned (as you can see in the Examples section). I have this problem on a wiki I'm helping maintain as part of my job. The reasons they happened for us was some trouble with Extension:DynamicPageList (third-party), which wasn't ready for MediaWiki 1.35 when we upgraded to that version. We didn't notice this until after it was all put into production, and the symptoms were that some pages wouldn't be added to the right categories, and that some links that should be blue (because of newly created articles) were still red.

Ironically, we were not able to fix this with manageJobs.php (though we should have), because the getAllAbandonedJobs was not implemented for the default JobQueueDB.php. I discovered that after the fact, but it was already fixed quite recently in phab:T276945, but that's too recent for it to be in MW 1.35.

Tenbergen (talkcontribs)

Thanks for the explanation, Jon! I was wondering if this might shed light on some extensions that are not updating right for me. It didn't list anything for those, but found two abandoned jobs for Extension:ReplaceText. Repushing them was not successful, but they were likely from today, so will see if they run through tomorrow.

Reply to "What would be an abandoned job?"
There are no older topics
Return to "ManageJobs.php" page.