Last modified: 2014-05-06 10:23:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T48910, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46910 - Add [[d:Special:DispatchStats]] into the API or include with maxlag?
Add [[d:Special:DispatchStats]] into the API or include with maxlag?
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: High major (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=0
: need-volunteer
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-04 23:35 UTC by Kunal Mehta (Legoktm)
Modified: 2014-05-06 10:23 UTC (History)
11 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-04-04 23:35:41 UTC
Background: [[d:User_talk:Legoktm#I_requested_a_block_for_Legobot]]

My bot was blocked for editing too fast and heavily increasing the lag for the dispatcher. Normally this wouldn't have been an issue on any other project since maxlag is all you need to worry about, except that on Wikidata has dispatcher lag.

I think the best way to fix this going forwards would be to either:
*Include dispatcher lag into maxlag
*Make dispatch lag it's own thing (&dispatchlag=1000)

For the time being, it would be nice if we could at least access the lag via the API, maybe in meta=siteinfo? (https://www.wikidata.org/w/api.php?action=query&meta=siteinfo&format=jsonfm) 

I personally think making it it's own parameter is the best, since the scale of dispatch lag is very different than maxlag, and that there's no need to stop "normal bots" (an archivebot, anything non-wikidata related) from editing if dispatcher lag is high, however if you include it in with maxlag, there's no need to update existing frameworks.
Comment 1 Nemo 2013-04-05 08:12:24 UTC
It's essentially a job queue like thing, so it should be in the statistics API module with the job queue.
When your bot was blocked, the average dispatch lag was still below the usual one (around 10 hours, see bug 45892), so it's hard to say how this info could have helped the specific bot, or how a useful piece of information for bots could be produced.

Probably the problem will be superseded when the system becomes more robust (bug 46643).
Comment 2 Marius Hoch 2014-04-29 18:41:24 UTC
How does this play together with bug 46643? If it will be fixed, I guess we no longer have something like a dispatch lag (at least not one that can be easily measured or has much relevance)
Comment 3 Kunal Mehta (Legoktm) 2014-04-29 19:42:19 UTC
The general premise of this bug is that bots need to be aware of dispatch lag, but there is no API for it.

If bots no longer need to care about dispatch lag, then this can be closed as INVALID/WONTFIX.
Comment 4 Lydia Pintscher 2014-05-06 10:23:40 UTC
Good point. We'll go for the other one.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links