python-zulip-api/bots
Tim Abbott 25bb86d2d0 zephyr_mirror: Fix killing duplicate zephyr_mirror processes.
The refactoring that we did a couple weeks ago to make the zephyr
mirror script restart itself automatically (by splitting it into
zephyr_mirror.py and zephyr_mirror_backend.py) had a poor interaction
with our code for killing old zephyr_mirror processes (to prevent
double-mirroring).  If you manually ran two copies of the outer
mirroring script (zephyr_mirror.py), then the second one would on
startup kill the first one's zephyr_mirror_backend.py children (for
being duplicate zephyr_mirror_backend.py processes that would result
in double-mirroring).  However, importantly, it did not kill the first
mirroring script's zephyr_mirror.py parent process, so the first
mirroring script would then proceed to startup up new children.  The
process then repeats, with the two scripts' roles reversed.

This issue didn't affect the sharded mirroring case, where I had been
doing the testing of the kill code with that refactoring, because we
don't have a version of the outer zephyr_mirror.py loop for that
situation (a consequence of it being hard to restart the threads
properly with the run_parallel API that we're using to spawn all the
children).

(imported from commit d4886ac77312a6b0ebd0d612f6fb084970bf23a2)
2012-12-21 12:44:19 -05:00
..
__init__.py Move our various bots into api/bots/. 2012-10-25 13:53:34 -04:00
check-mirroring check-mirroring: Fix spurious double-sent messages due to ACK failures. 2012-12-18 13:13:43 -05:00
feedback-bot feedback-bot: fix display_recipient typo that crashes the bot. 2012-12-11 10:22:52 -05:00
gcal-bot gcal-bot: Rename variable 'humbug' 2012-12-03 17:49:27 -05:00
humbug_trac.py Rename class HumbugAPI to Client 2012-12-03 15:54:54 -05:00
mit_subs_list.py Move our various bots into api/bots/. 2012-10-25 13:53:34 -04:00
send-nagios-notification Rename class HumbugAPI to Client 2012-12-03 15:54:54 -05:00
tddium-notify-humbug Add a Tddium post-build notification task for CUSTOMER1 2012-12-04 14:25:44 -05:00
zephyr-mirror-crontab zephyr-mirror-crontab: Fix truncation races. 2012-12-03 17:56:38 -05:00
zephyr_mirror.py zephyr_mirror: Add options to run class mirror without sharding for debugging. 2012-11-29 13:57:06 -05:00
zephyr_mirror_backend.py zephyr_mirror: Fix killing duplicate zephyr_mirror processes. 2012-12-21 12:44:19 -05:00