Skip to content
Snippets Groups Projects
  1. Jun 01, 2017
  2. May 30, 2017
  3. May 29, 2017
    • Carl Suster's avatar
      Update cronsetup for release 21 · 44eedf3e
      Carl Suster authored
      The offline beamspot account atlidbs has a release set up at ~atlidbs/cron
      which is responsible for running our cron jobs. I'm updating it to use release
      21 built with cmake from git, and so the setup script needs to change to
      reflect the new workflow.
      
      I have also tweaked the debug messages and used the canonical shebang line.
      44eedf3e
    • Elmar Ritsch's avatar
      Add fixes for InDet SD packages from SVN · 4234c82c
      Elmar Ritsch authored
      Changes taken from these SVN tags:
       BCM_G4_SD-00-07-00
       PixelG4_SD-00-09-00
       SCT_G4_SD-00-08-00
       TRT_G4_SD-00-09-01
      
      Fixes ATLASSIM-3009
      4234c82c
  4. May 26, 2017
    • Carl Suster's avatar
      Fix GetRelease in JobRunner · 3d446788
      Carl Suster authored
      I don't see how the old behaviour ever worked, since the test string could
      never be equal to the empty string so that if statement would always be true.
      However since the code was always run in environments with a patch version the
      bug was never noticed.
      
      With the newer cmake+git releases this buggy code path is triggered, so
      I instead remove it. Also `os.path.expandvars()` was really being abused here
      since if the variable is not set it returns the variable name literally in the
      result whereas I think the author expected it to return an empty string.
      Instead `os.getenv()` is more appropriate.
      3d446788
    • Goetz Gaycken's avatar
      Really store SCT DCS conditions data updates. · d036e8a1
      Goetz Gaycken authored
      Updates to DCS conditions data have been silently ignored. This was
      caused by using insert rather than an assignment to update existing
      data.
      d036e8a1
    • Susumu Oda's avatar
      Add protection against invalid hashId. Remove unnecessary initialization. Use... · fa331ff7
      Susumu Oda authored
      Add protection against invalid hashId. Remove unnecessary initialization. Use is_valid method as a standard way.
      fa331ff7
  5. May 25, 2017
  6. May 24, 2017
  7. May 22, 2017
  8. May 21, 2017
  9. May 19, 2017
  10. May 18, 2017
  11. May 17, 2017
    • Iskander Ibragimov's avatar
    • Iskander Ibragimov's avatar
    • Carl Suster's avatar
      Remove svn Id lines · 2584ea78
      Carl Suster authored
      Similar to 9ebe7e4d, remove misleading version lines which are no longer
      updated. Once I confirm that the __version__ variables are not being used
      elsewhere I will remove these as a more permanent solution.
      2584ea78
    • Carl Suster's avatar
      Separate command arguments from argv · 40574397
      Carl Suster authored
      Similar to the change in beamspotman.py from 2428a685
      40574397
    • Carl Suster's avatar
      Make use of the new TaskManager interface · c117b451
      Carl Suster authored
      The previous commit introduced a new interface to TaskManager where using it as
      a context manager cleans up the database connection at the end of the block.
      This commit switches all current uses of the TaskManager to this new interface,
      in some cases re-ordering parts of the code locally so as to make the block
      with the database connection as minimal as possible.
      
      The majority of lines touched here are only because they needed to be indented
      to sit inside a new context block.
      c117b451
    • Carl Suster's avatar
      Make TaskManager a context manager · 2c077a1a
      Carl Suster authored
      We ran into a compound issue when running beamspot jobs on the batch system.
      The underlying issue was that there is a ROOT bug triggered when the end of the
      python script is reached and ROOT enters a cleanup routine. It would crash and
      then cause the scripts to hang.
      
      The problem was that we were opening an Oracle connection to the beamspot task
      database but deferring the closure of the connection until __del__. Because of
      the ROOT bug python never got around to cleaning the TaskManager and so the
      connection would remain open. Other jobs in the same batch would then hang
      waiting for the database lock to be released causing a deadlock. The jobs would
      fill up all available execution slots on the batch queue. To make matters even
      worse the default batch queue was atlasb1 which is used for time-critical jobs.
      
      This change instead makes TaskManager a python context manager so that it can
      be called using a pattern like:
      
          with TaskManager(...) as taskman:
            # do something ...
      
      and the connection will be closed at the end of the block. A variable is added
      to keep track of cases when this pattern is not being used so that a warning
      can be printed. This should be sufficient to minimise deadlock issues like we
      observed before.
      2c077a1a
    • Carl Suster's avatar
      137fbecf
    • Carl Suster's avatar
      Separate cmdargs from argv for clarity · 2428a685
      Carl Suster authored
      This is not done consistently throughout the file, but will be superseded by
      a better interface in the near future so it's not worth changing the other
      commands as well.
      
      This change was part of svn changeset 786385:
      
        https://svnweb.cern.ch/trac/atlasoff/changeset/786385/InnerDetector/InDetExample/InDetBeamSpotExample/trunk/bin
      2428a685
  12. May 16, 2017
  13. May 15, 2017
Loading