DIRACGrid / DIRAC

DIRAC Grid
http://diracgrid.org
GNU General Public License v3.0
113 stars 174 forks source link

[8.0] JobDB: update LastUpdateTime when the job is matched #7701

Closed fstagni closed 3 months ago

fstagni commented 3 months ago

This (commit https://github.com/DIRACGrid/DIRAC/commit/9125b4bcd86a5cbc695c144bbfd3d422e35d9300) fixes an obscure bug that was unfolding like the following:

  1. Job X went to status "Waiting" at time T
  2. Job X was finally matched at time T + Y (with Y more than 2 hours)
    • no update of LastUpdateTime field in JobDB, which was staying at time T
    • the job normally stays in status Matched only few seconds, before going to "Running"
  3. StalledJobAgent looks, among other tasks, at jobs possibly stuck in status "Matched" for more than 2 hours, rescheduling them
    • if that happens in those few seconds when the status was "Matched" but the LastUpdateTime still T, those jobs were rescheduled.

BEGINRELEASENOTES

*WMS FIX: JobDB: update LastUpdateTime when the job is matched

ENDRELEASENOTES

DIRACGridBot commented 3 months ago

Sweep summary

Sweep ran in https://github.com/DIRACGrid/DIRAC/actions/runs/9694203659

Failed: