Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
chaen committed Dec 5, 2023
1 parent 1a81115 commit 6987e65
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/DIRAC/Core/Tornado/Server/TornadoService.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,12 @@ def export_dbSleep(self, sleepTime):
print(f"CHRIS dir {dir(self)}")
selfAttr = [getattr(self, attr) for attr in dir(self)]
print(f"CHRIS {selfAttr=}")
dbInst = [0]
from DIRAC.Core.Base.DB import DB

dbInstances = [attr for attr in selfAttr if isinstance(attr, DB)]
print(f"CHRIS {dbInstances=}")

dbInst = dbInstances[0]
dbInst._query(f"SELECT 'IN DB', SLEEP({sleepTime})")
return S_OK(sleepTime)
except Exception as e:
Expand Down

0 comments on commit 6987e65

Please sign in to comment.