Uploaded image for project: 'CREAM'
  1. CREAM
  2. CREAM-99

Python error on ERT calculation: local variable 'est' referenced before assignment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.16.1, 1.14.5
    • None
    • Security Level: Public (Visbile by non-authn users.)
    • None

      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

            andreett Paolo Andreetto
            andreett Paolo Andreetto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: