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 6987e65 commit a994bd4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DIRAC/Core/DISET/RequestHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,9 @@ def export_dbSleep(self, sleepTime):
A simple sleep
"""
try:
dbInst = [getattr(self, attr) for attr in dir(self)][0]
from DIRAC.Core.Base.DB import DB

dbInst = [attrObj for attr in dir(self) if isinstance(attrObj := getattr(self, attr), DB)][0]
dbInst._query(f"SELECT 'IN DB', SLEEP({sleepTime})")
return S_OK(sleepTime)
except Exception as e:
Expand Down

0 comments on commit a994bd4

Please sign in to comment.