JJMC89 added a comment.

  Pywikibot sleeping like that is its reaction to the wiki's database lag. 
(mw:Manual:Maxlag parameter 
<https://www.mediawiki.org/wiki/Manual:Maxlag_parameter>)
  
  name=recent example from my bot's logs
    2022-05-20 14:41:23        throttle.py,  194 in  checkMultiplicity: VERBOSE 
 Found 1 wikipedia:en processes running, including this one.
    2022-05-20 14:41:23             api.py, 1837 in             submit: VERBOSE 
 Pausing due to database lag: Waiting for 10.64.16.12: 6.762515 seconds lagged.
    2022-05-20 14:41:23        throttle.py,  278 in               wait: VERBOSE 
 Sleeping for 5.0 seconds, 2022-05-20 14:41:23
    2022-05-20 14:41:28             api.py, 1837 in             submit: VERBOSE 
 Pausing due to database lag: Waiting for 10.64.16.12: 11.810698 seconds lagged.
    2022-05-20 14:41:28        throttle.py,  278 in               wait: VERBOSE 
 Sleeping for 5.0 seconds, 2022-05-20 14:41:28
    2022-05-20 14:41:34             api.py, 1837 in             submit: VERBOSE 
 Pausing due to database lag: Waiting for 10.64.16.12: 16.968777 seconds lagged.
    2022-05-20 14:41:34        throttle.py,  278 in               wait: VERBOSE 
 Sleeping for 10.2 seconds, 2022-05-20 14:41:34
    2022-05-20 14:41:44             api.py, 1837 in             submit: VERBOSE 
 Pausing due to database lag: Waiting for 10.64.16.12: 27.212291 seconds lagged.
    2022-05-20 14:41:44        throttle.py,  278 in               wait: VERBOSE 
 Sleeping for 21.8 seconds, 2022-05-20 14:41:44
    2022-05-20 14:42:06             api.py, 1837 in             submit: VERBOSE 
 Pausing due to database lag: Waiting for 10.64.16.12: 49.064452 seconds lagged.
    2022-05-20 14:42:06        throttle.py,  278 in               wait: VERBOSE 
 Sleeping for 49.1 seconds, 2022-05-20 14:42:06
    2022-05-20 14:42:55             api.py, 1837 in             submit: VERBOSE 
 Pausing due to database lag: Waiting for 10.64.16.12: 98.276628 seconds lagged.
    2022-05-20 14:42:55        throttle.py,  276 in               wait: INFO    
 Sleeping for 117.9 seconds, 2022-05-20 14:42:55
    2022-05-20 14:44:53             api.py, 1837 in             submit: VERBOSE 
 Pausing due to database lag: Waiting for 10.64.16.12: 216.43488 seconds lagged.
    2022-05-20 14:44:53        throttle.py,  276 in               wait: INFO    
 Sleeping for 120.0 seconds, 2022-05-20 14:44:53
    2022-05-20 14:46:53        throttle.py,  194 in  checkMultiplicity: VERBOSE 
 Found 1 wikipedia:en processes running, including this one.
    2022-05-20 14:46:53             api.py, 1837 in             submit: VERBOSE 
 Pausing due to database lag: Waiting for 10.64.16.12: 336.716549 seconds 
lagged.
    2022-05-20 14:46:53        throttle.py,  276 in               wait: INFO    
 Sleeping for 120.0 seconds, 2022-05-20 14:46:53
    2022-05-20 14:48:54             api.py, 1837 in             submit: VERBOSE 
 Pausing due to database lag: Waiting for 10.64.16.12: 456.833362 seconds 
lagged.
    2022-05-20 14:48:54        throttle.py,  276 in               wait: INFO    
 Sleeping for 120.0 seconds, 2022-05-20 14:48:54
    2022-05-20 14:50:54             api.py, 1837 in             submit: VERBOSE 
 Pausing due to database lag: Waiting for 10.64.16.12: 577.129301 seconds 
lagged.
    2022-05-20 14:50:54        throttle.py,  276 in               wait: INFO    
 Sleeping for 120.0 seconds, 2022-05-20 14:50:54
    2022-05-20 14:52:54        throttle.py,  194 in  checkMultiplicity: VERBOSE 
 Found 1 wikipedia:en processes running, including this one.
    2022-05-20 14:52:54             api.py, 1837 in             submit: VERBOSE 
 Pausing due to database lag: Waiting for 10.64.16.12: 697.323472 seconds 
lagged.
    2022-05-20 14:52:54        throttle.py,  276 in               wait: INFO    
 Sleeping for 120.0 seconds, 2022-05-20 14:52:54
    2022-05-20 14:54:54             api.py, 1837 in             submit: VERBOSE 
 Pausing due to database lag: Waiting for 10.64.16.12: 817.545541 seconds 
lagged.
    2022-05-20 14:54:54        throttle.py,  276 in               wait: INFO    
 Sleeping for 120.0 seconds, 2022-05-20 14:54:54
    2022-05-20 14:56:54             api.py, 1837 in             submit: VERBOSE 
 Pausing due to database lag: Waiting for 10.64.16.12: 937.822171 seconds 
lagged.
    2022-05-20 14:56:54        throttle.py,  276 in               wait: INFO    
 Sleeping for 120.0 seconds, 2022-05-20 14:56:54
    2022-05-20 14:58:55        throttle.py,  194 in  checkMultiplicity: VERBOSE 
 Found 1 wikipedia:en processes running, including this one.
    2022-05-20 14:58:55             api.py, 1837 in             submit: VERBOSE 
 Pausing due to database lag: Waiting for 10.64.16.12: 1058.070196 seconds 
lagged.
    2022-05-20 14:58:55        throttle.py,  276 in               wait: INFO    
 Sleeping for 120.0 seconds, 2022-05-20 14:58:55
    2022-05-20 15:00:55             api.py, 1837 in             submit: VERBOSE 
 Pausing due to database lag: Waiting for 10.64.16.12: 1178.19597 seconds 
lagged.
    2022-05-20 15:00:55        throttle.py,  276 in               wait: INFO    
 Sleeping for 120.0 seconds, 2022-05-20 15:00:55
    2022-05-20 15:02:55        __init__.py, 1327 in             _flush: VERBOSE 
 Dropped throttle(s).
    2022-05-20 15:02:55            http.py,   81 in              flush: VERBOSE 
 Closing network session.
    2022-05-20 15:02:55            http.py,   85 in              flush: 
CRITICAL Exiting due to uncaught exception <class 
'pywikibot.exceptions.MaxlagTimeoutError'>
    2022-05-20 15:02:55            http.py,   87 in              flush: VERBOSE 
 Network session closed.

TASK DETAIL
  https://phabricator.wikimedia.org/T308897

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: JJMC89
Cc: JJMC89, Amire80, Aklapper, pywikibot-bugs-list, Ladsgroup, Kitanago, 
MutazAwad, Mhmohona, Jyoo1011, Kasyap, JohnsonLee01, SHEKH, Dijkstra, Khutuck, 
Zkhalido, Viztor, Wenyi, VisbyStar, Chicocvenancio, Tbscho, MayS, Mdupont, 
Dvorapa, Altostratus, Avicennasis, SBisson, mys_721tx, WMDE-Fisch, Xqt, jayvdb, 
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to