Skip to content

Commit

Permalink
TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Sep 16, 2024
1 parent cf1738b commit 02fd5a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,13 @@

class JobMonitoringClient:
def _fetch_summary(self, grouping, search=None):
diracxUrl = gConfig.getValue("/DiracX/URL")
if not diracxUrl:
raise ValueError("Missing mandatory /DiracX/URL configuration")
with DiracXClient() as api:
return api.jobs.summary(grouping=grouping, search=search)

def _fetch_search(self, parameters, jobIDs):
if not isinstance(jobIDs, list):
jobIDs = [jobIDs]

diracxUrl = gConfig.getValue("/DiracX/URL")
if not diracxUrl:
raise ValueError("Missing mandatory /DiracX/URL configuration")
with DiracXClient() as api:
jobs = api.jobs.search(
parameters=(["JobID"] + parameters) if parameters else None,
Expand Down
2 changes: 2 additions & 0 deletions tests/Jenkins/utilities.sh
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ installDIRAC() {
fi
fi

pip install git+https://github.com/DIRACGrid/diracx.git

if [[ -n "${INSTALLATION_BRANCH}" ]]; then
# Use this for (e.g.) running backward-compatibility tests
echo "pip-installing DIRAC from git+https://github.com/DIRACGrid/DIRAC.git@${INSTALLATION_BRANCH}#egg=DIRAC[client]"
Expand Down

0 comments on commit 02fd5a9

Please sign in to comment.