!mduWVRtKzYinVAelXP:matrix.org

MWStake General

127 Members
MediaWIki Stakeholders' Group general discussion25 Servers

Load older messages


SenderMessageTime
28 Mar 2020
@tgr:matrix.orgtgrin any case, the job queue should not be used for critical tasks17:12:15
@tgr:matrix.orgtgrwhen it is, it should use some sort of journal system17:12:30
@tgr:matrix.orgtgrRenameUser does that, for example17:12:39
@bryandamon:matrix.orgbryandamon Possibly poorly configured extensions, I'm not sure, but I've had stuck jobs that never resolved themselves and had to manually delete them from the database to allow them, and other jobs to continue. 17:13:49
@tgr:matrix.orgtgrI'm still not sure what that means17:24:21
@tgr:matrix.orgtgrthere's no timeout configured for the job runner and the job gets into an infinite loop?17:24:43
@tgr:matrix.orgtgrthe job is in the queue and never gets executed?17:25:02
@tgr:matrix.orgtgrit does not get removed from the queue after it fails?17:25:16
@darenwelsh:matrix.orgdarenwelshthe job is attempted once and never re-tries, IIRC17:25:52
@darenwelsh:matrix.orgdarenwelshI think i have also tried changing the "attempts" value from 1 to 0 before, but that was a long time ago and I don't remember for sure17:26:14
@bryandamon:matrix.orgbryandamon Yeah, it's there, doesn't leave, and prevents other jobs from running (my experience). 17:26:19
@tgr:matrix.orgtgrthat sounds like a problem with the job runner more than the job17:27:07
@darenwelsh:matrix.orgdarenwelshre: preventing ... not sure it has prevented independent jobs, but maybe didn't run and therefore didn't create new jobs as an expected result for that one job (In how I interpreted it)17:27:44
@tgr:matrix.orgtgrin theory failed jobs are logged and discarded, possibly after some retries17:27:58
@darenwelsh:matrix.orgdarenwelshin my case, the job runner is just a cron task to runJobs.php17:28:03
@darenwelsh:matrix.orgdarenwelshwhich is MW core17:28:14
@tgr:matrix.orgtgrwould be a core bug then, if it can be reproduced17:29:09
@darenwelsh:matrix.orgdarenwelshif I could reproduce it, I'd know more about why it's happening, or at least based on more specific actions that lead to it. But I think it's just based on updates to templates.17:30:21
@tgr:matrix.orgtgrwell, when the job gets stuck you can run the job runner and observe what happens17:36:02
@tgr:matrix.orgtgrthat should be enough of a reproduction17:36:11
@darenwelsh:matrix.orgdarenwelshRedacted or Malformed Event17:50:34
@darenwelsh:matrix.orgdarenwelsh

So here's an example error from runJobs.php

TypeError from line 136 of /opt/htdocs/mediawiki/includes/jobqueue/jobs/RefreshLinksJob.php: Argument 1 passed to RefreshLinksJob::runForTitle() must be an instance of Title, null given, called in /opt/htdocs/mediawiki/includes/jobqueue/jobs/RefreshLinksJob.php on line 122
Backtrace:
#0 /opt/htdocs/mediawiki/includes/jobqueue/jobs/RefreshLinksJob.php(122): RefreshLinksJob->runForTitle(NULL)
#1 /opt/htdocs/mediawiki/includes/jobqueue/JobRunner.php(296): RefreshLinksJob->run()
#2 /opt/htdocs/mediawiki/includes/jobqueue/JobRunner.php(193): JobRunner->executeJob(RefreshLinksJob, Wikimedia\Rdbms\LBFactorySimple, BufferingStatsdDataFactory, integer)
#3 /opt/htdocs/mediawiki/maintenance/runJobs.php(89): JobRunner->run(array)
#4 /opt/htdocs/mediawiki/maintenance/doMaintenance.php(94): RunJobs->execute()
#5 /opt/htdocs/mediawiki/maintenance/runJobs.php(122): require_once(string)

I have no idea what I'm supposed to do with that.

18:00:28
@tgr:matrix.orgtgris it causing problems with the job queue or are you just unhappy about the job failing?18:10:42
@tgr:matrix.orgtgrit will cause the link tables (and thus what-links-here and similar) to be out of sync, which is not a tragedy18:11:14
@tgr:matrix.orgtgr the runJobs log channel should include job parameter information, at a glance this error is caused by something creating a RefreshLinksJob with none of the recursive, pages, title options set 18:17:38
@tgr:matrix.orgtgr(which arguably should be reported as a bug - errors like that should throw in the constructor, not when the job is executed)18:18:06
@darenwelsh:matrix.orgdarenwelshboth - I'm unhappy because something isn't being done that should be and yes it messes up the job running because runJobs.php exits when it hits one of these. So then other jobs aren't run that could be until that job runner is started again.18:18:48
@darenwelsh:matrix.orgdarenwelshso, how would I find out what created a job like this that is missing those options?18:21:45
@tgr:matrix.orgtgron a closer read, if the title is not specified, it will just default to Special:BadTitle21:31:15
@tgr:matrix.orgtgrso something must pass an invalid title21:32:08

Show newer messages


Back to Room ListRoom Version: