Skip to content

Commit

Permalink
fix: fix pylint3.2 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed May 16, 2024
1 parent 11c8228 commit 643ef05
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 5 deletions.
100 changes: 100 additions & 0 deletions pilot.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
DIRAC
{
Setup = LHCb-Production
Extensions = LHCb
Configuration
{
Servers = dips://lhcb-conf-dirac.cern.ch:9135/Configuration/Server
Servers += dips://lbvobox313.cern.ch:9135/Configuration/Server
Servers += dips://voboxlhcb.in2p3.fr:9135/Configuration/Server
Servers += dips://voboxlhcb.gridka.de:9135/Configuration/Server
Servers += dips://lbvobox308.cern.ch:9135/Configuration/Server
Servers += dips://lcgvo-lhcb-1.gridpp.rl.ac.uk:9135/Configuration/Server
Servers += dips://voboxlhcb.nikhef.nl:9135/Configuration/Server
Servers += dips://ui01-lhcb.cr.cnaf.infn.it:9135/Configuration/Server
Servers += dips://lbvobox900.cern.ch:9135/Configuration/Server
Servers += dips://lbvobox300.cern.ch:9135/Configuration/Server
Servers += dips://lbvobox316.cern.ch:9135/Configuration/Server
Servers += dips://lbvobox309.cern.ch:9135/Configuration/Server
Servers += dips://lbvobox402.cern.ch:9135/Configuration/Server
Servers += dips://lbvobox306.cern.ch:9135/Configuration/Server
Servers += dips://lbvobox401.cern.ch:9135/Configuration/Server
Servers += dips://lbvobox303.cern.ch:9135/Configuration/Server
Servers += dips://lbvobox315.cern.ch:9135/Configuration/Server
Servers += dips://lbvobox307.cern.ch:9135/Configuration/Server
Servers += dips://lbvobox311.cern.ch:9135/Configuration/Server
Servers += dips://lbvobox310.cern.ch:9135/Configuration/Server
Servers += dips://lbvobox312.cern.ch:9135/Configuration/Server
Servers += dips://lbvobox301.cern.ch:9135/Configuration/Server
Servers += dips://lbvobox305.cern.ch:9135/Configuration/Server
Servers += dips://lbvobox304.cern.ch:9135/Configuration/Server
Servers += dips://voboxlhcb.pic.es:9135/Configuration/Server
Servers += dips://lbvobox302.cern.ch:9135/Configuration/Server
}
Security
{
UseServerCertificate = no
SkipCAChecks = yes
}
}
LocalInstallation
{
Setup = LHCb-Production
ConfigurationServer = dips://lhcb-conf-dirac.cern.ch:9135/Configuration/Server
ConfigurationServer += dips://lbvobox313.cern.ch:9135/Configuration/Server
ConfigurationServer += dips://voboxlhcb.in2p3.fr:9135/Configuration/Server
ConfigurationServer += dips://voboxlhcb.gridka.de:9135/Configuration/Server
ConfigurationServer += dips://lbvobox308.cern.ch:9135/Configuration/Server
ConfigurationServer += dips://lcgvo-lhcb-1.gridpp.rl.ac.uk:9135/Configuration/Server
ConfigurationServer += dips://voboxlhcb.nikhef.nl:9135/Configuration/Server
ConfigurationServer += dips://ui01-lhcb.cr.cnaf.infn.it:9135/Configuration/Server
ConfigurationServer += dips://lbvobox900.cern.ch:9135/Configuration/Server
ConfigurationServer += dips://lbvobox300.cern.ch:9135/Configuration/Server
ConfigurationServer += dips://lbvobox316.cern.ch:9135/Configuration/Server
ConfigurationServer += dips://lbvobox309.cern.ch:9135/Configuration/Server
ConfigurationServer += dips://lbvobox402.cern.ch:9135/Configuration/Server
ConfigurationServer += dips://lbvobox306.cern.ch:9135/Configuration/Server
ConfigurationServer += dips://lbvobox401.cern.ch:9135/Configuration/Server
ConfigurationServer += dips://lbvobox303.cern.ch:9135/Configuration/Server
ConfigurationServer += dips://lbvobox315.cern.ch:9135/Configuration/Server
ConfigurationServer += dips://lbvobox307.cern.ch:9135/Configuration/Server
ConfigurationServer += dips://lbvobox311.cern.ch:9135/Configuration/Server
ConfigurationServer += dips://lbvobox310.cern.ch:9135/Configuration/Server
ConfigurationServer += dips://lbvobox312.cern.ch:9135/Configuration/Server
ConfigurationServer += dips://lbvobox301.cern.ch:9135/Configuration/Server
ConfigurationServer += dips://lbvobox305.cern.ch:9135/Configuration/Server
ConfigurationServer += dips://lbvobox304.cern.ch:9135/Configuration/Server
ConfigurationServer += dips://voboxlhcb.pic.es:9135/Configuration/Server
ConfigurationServer += dips://lbvobox302.cern.ch:9135/Configuration/Server
Extensions = LHCb
SkipCADownload = True
SkipVOMSDownload = True
SkipCAChecks = True
}
LocalSite
{
ReleaseProject = LHCb
ReleaseVersion = 11.0.39
SharedArea = /cvmfs/lhcb.cern.ch/lib
architecture = aarch64
SI00 = 2185
CEType = AREX
VO = lhcb
VO += LHCb
MaxRAM = 6000
ContainerRoot = /cvmfs/lhcb.cern.ch/containers/os-base/alma9-devel/prod/aarch64
maxCPUTime = 1152
MaxWaitingJobs = 3
MaxTotalJobs = 10
Queue = nordugrid-Condor-condor_arm
}
Resources
{
Computing
{
CEDefaults
{
VirtualOrganization = lhcb
}
}
}
2 changes: 1 addition & 1 deletion src/WebAppDIRAC/WebApp/handler/JobMonitorHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from DIRAC import gConfig, gLogger
from DIRAC.Core.Utilities import DictCache
from DIRAC.Core.Utilities.Graphs.Palette import Palette
from DIRAC.RequestManagementSystem.Client.Request import Request
from DIRAC.RequestManagementSystem.Client.ReqClient import ReqClient
from DIRAC.WorkloadManagementSystem.Client.JobMonitoringClient import JobMonitoringClient
from DIRAC.WorkloadManagementSystem.Client.JobManagerClient import JobManagerClient
Expand Down Expand Up @@ -284,6 +283,7 @@ def web_jobAction(self, JobID):
ids = [int(i) for i in ids]

RPC = JobManagerClient()
result = None
if self.get_argument("action") == "delete":
result = RPC.deleteJob(ids)
elif self.get_argument("action") == "kill":
Expand Down
3 changes: 2 additions & 1 deletion src/WebAppDIRAC/WebApp/handler/TokenManagerHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import datetime
import jwt

from DIRAC import gConfig, gLogger
from DIRAC import gLogger
from DIRAC.ConfigurationSystem.Client.Helpers.Registry import getAllUsers
from DIRAC.FrameworkSystem.Client.TokenManagerClient import TokenManagerClient

Expand Down Expand Up @@ -93,6 +93,7 @@ def web_tokenData(self, userid: str, data_kind: str) -> dict:
:return: dict
"""
if (result := self.tm.getTokensByUserID(userid))["OK"]:
res = ""
if data_kind == "getAccessToken":
res = (
str(jwt.decode(result["Value"][0]["access_token"], options={"verify_signature": False}))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def web_executeOperation(self, action, ids):

def __fileRetry(self, prodid, mode):
tsClient = TransformationClient()
result = None
if mode == "proc":
result = tsClient.getTransformationFilesCount(prodid, "ErrorCount", {"Status": "Processed"})
elif mode == "not":
Expand Down
6 changes: 3 additions & 3 deletions src/WebAppDIRAC/WebApp/handler/VMDiracHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def web_getRunningInstancesBEPHistory(self, bucketSize=900, timespan=86400):
eTime = TimeUtilities.toEpoch(record[0])
if eTime < olderThan:
rL = [eTime, record[1], int(record[2])]
data.append(rL)
data.append(rL)
return {"success": "true", "data": data}

def web_getRunningInstancesByRunningPodHistory(self, bucketSize=900, timespan=86400):
Expand All @@ -124,7 +124,7 @@ def web_getRunningInstancesByRunningPodHistory(self, bucketSize=900, timespan=86
eTime = TimeUtilities.toEpoch(record[0])
if eTime < olderThan:
rL = [eTime, record[1], int(record[2])]
data.append(rL)
data.append(rL)
return {"success": "true", "data": data}

def web_getRunningInstancesByImageHistory(self, bucketSize=900, timespan=86400):
Expand All @@ -137,5 +137,5 @@ def web_getRunningInstancesByImageHistory(self, bucketSize=900, timespan=86400):
eTime = TimeUtilities.toEpoch(record[0])
if eTime < olderThan:
rL = [eTime, record[1], int(record[2])]
data.append(rL)
data.append(rL)
return {"success": "true", "data": data}

0 comments on commit 643ef05

Please sign in to comment.