pheelcool / ga-bitbot

Automatically exported from code.google.com/p/ga-bitbot
GNU General Public License v3.0
0 stars 0 forks source link

report_gen lock up #36

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. running the system launcher (gal.py) 

When the gene_server starts up the default gene_def is set to "UNDEFINED". The 
gene_server then uses the gene_def hash from the first client registration to 
set the default gene_def_hash / database. 

Right now the the first client to register is report_gen.py which requests the 
current default gene_def_hash from the gene_server on every reporting cycle.  
This means the "UNDEFINED" db will be set as the default.

report_gen will then try to report out the "UNDEFINED" database, which in 
itself isn't a problem. The issue is that if no data is available report_gen 
will wait in a loop and under normal operating conditions the "UNDEFIEND" db 
isn't used so no data will ever become available. 

Even if the default config is changed on the server, report_gen wouldn't pick 
up the change until the next cycle which will never come.

Original issue reported on code.google.com by brian.mo...@gmail.com on 3 Mar 2012 at 6:05

GoogleCodeExporter commented 8 years ago
Fixed.

report_gen no longer stalls while waiting for data. If no data is immediately 
available an empty chart report is generated.

Original comment by brian.mo...@gmail.com on 5 Mar 2012 at 4:32

GoogleCodeExporter commented 8 years ago

Original comment by brian.mo...@gmail.com on 2 Dec 2012 at 11:56