Xqt added a comment.

Hm, I've been running the python sseclient example from https://wikitech.wikimedia.org/wiki/EventStreams#Python for the last 4 hours, and everything is still working fine.

I haven't tried this code though. It is possible the filtering stuff is doing something weird?

That sample is very simple. my running code rPBXQd1659d160110d4aa3c0290f7cf3369eda3da7eb6#5a719b8a is more complex and there might be several seconds of processing the event if it match the wanted params. The code hangs and it is not an infinite loop thus I think this could be a connection problem maybe a missing timeout. EventStreams uses requests and the timeout is None by default.

We had similar problems in past I guess, see T91236, T102462, T102113 which was (mostly?) solved with d367881.

Another idea is that the processing time is to long for EventStreams? (to be verified) In that case we should have a method to disconnect and resume with the last offset. Or use a threaded EventStream.

A third idea is to implement a watchdog like in T137281.

I'll start with the first idea. Any other suggestions?


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

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

To: Xqt
Cc: gerritbot, Magul, Ottomata, zhuyifei1999, tom29739, valhallasw, Aklapper, Xqt, pywikibot-bugs-list, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Avicennasis, Sn1per, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to