Bugs item #1735770, was opened at 2007-06-12 16:04 Message generated for change (Comment added) made by valhallasw You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1735770...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: interwiki Group: None Status: Closed
Resolution: Fixed
Priority: 3 Private: No Submitted By: André Malafaya Baptista (malafaya) Assigned to: Nobody/Anonymous (nobody) Summary: Interrupting bot with Ctrl-C doesn't decrement process count
Initial Comment: If I hit Ctrl-C while interwiki.py is running, I'll get the corresponding dump of what was being processed. If I run again interwiki.py, I'll get the message:
Checked for running processes. 2 processes currently running, including the current process.
If I repeat the above procedure, I'll get 3 and so on. This will eventually degrade the processing throttle and in no time the bot will be sleeping over a minute between page fetches.
A bot process count decrement would be desireable every time a bot exits (whether graciously or not, if possible).
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2007-08-23 16:49
Message: Logged In: YES user_id=687283 Originator: NO
I added a stopme() in the quit function in r4096, so this problem should no longer exist (as long as you don't press ctrl-c 20 times or so, and kill -9 probably still breaks it). Oh, and don't try reload(wikipedia) ;)
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya) Date: 2007-06-13 19:30
Message: Logged In: YES user_id=1037345 Originator: YES
I pressed Ctrl-C immediately after the bot started retrieving from AllPages in the source Wikipedia (after noticing I had incorrect language code). Curiously, as of today, it seems I can't reproduce it anymore either... Dropped issue?
----------------------------------------------------------------------
Comment By: Daniel Herding (wikipedian) Date: 2007-06-13 18:03
Message: Logged In: YES user_id=880694 Originator: NO
I cannot reproduce this. At which moment do you press CTRL-C?
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1735770...