csailer / bots

Automatically exported from code.google.com/p/bots
0 stars 0 forks source link

improve: handling of only one engine allowed to run #179

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
engine now connects to a port.
if port is free: no other engine is running.
if port is not free: other instance of engine is running.

Advantage:
- simpler and unambiguous way of detecting this
- the database 'lock' is still set. if no other instance of bots-engine is 
running and database-lock is set: previous instance has ended in wrong way.
In this case the integrity of the database is checked; if OK do a crash 
recovery.
- code is much clearer and simpler
- simpler GUI: 'unlock database/crash recovery' in GUI is not needed anymore.

Note: this change is independent from use of jobqueue-server.

Original issue reported on code.google.com by hjebb...@gmail.com on 24 Sep 2012 at 11:39

GoogleCodeExporter commented 9 years ago

Original comment by hjebb...@gmail.com on 10 Sep 2013 at 12:45