Source: https://ggus.eu/ws/ticket_info.php?ticket=92826
Duplicates: https://savannah.cern.ch/bugs/index.php?101038
In the following case:
1. no jobs from X VO is queued,
2. no slots are free,
3. no jobs from X VO is running
the value for ERT is not calculated, so the an UnBoundLocalError is thrown:
File "/usr/libexec/lcg-info-dynamic-scheduler", line 557, in <module>
printGLUEData(bq, dndictglue1, pcaps, 1, logger)
File "/usr/libexec/lcg-info-dynamic-scheduler", line 200, in printGLUEData
ert = estimator.estimate(bq, vo, logger)
File "/usr/lib/python2.6/site-packages/EstTT.py", line 72, in estimate
return adjusted_ett(est, lrms.schedCycle)
UnboundLocalError: local variable 'est' referenced before assignment