Any experience with race conditions when running multiple bots simultaneously?

Any experience with race conditions when running multiple bots simultaneously?

Hello. I am getting tired of the one-second delay between saves, esp. since I have a job coming up that involves 100,000 pages or so. I am thinking of running multiple bots at once but I'm concerned about the possibility of race conditions when two bots try to work on the same page at the same time. Do you have any idea what happens in such a case? There's clearly code so that if you press Edit and then save and someone else saves in the meantime, you get an edit conflict, but I can't easily see how that could be implemented in pywikibot. Have you ever run multiple bots at once? If so, do you simply hope no clashes occur?

Benwing (talk)11:16, 7 July 2015

I haven't had problems with race conditions when running the same bot multiple times. But you have to be careful that there are no problems when running the bot twice on the same page in sequence either. That is, the second run should be a no-op, rather than accumulating more changes.

CodeCat11:41, 7 July 2015

Yeah, I know about that issue. I'm usually careful to first do a run without changing anything, and then examine the output, which usually (but not always ...) helps, although I've still run into it occasionally ...

Benwing (talk)11:58, 7 July 2015