Skip to content

Commit

Permalink
refactor: remove SudoCE
Browse files Browse the repository at this point in the history
  • Loading branch information
aldbr committed Jun 1, 2023
1 parent c89fea7 commit 69978f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 230 deletions.
8 changes: 1 addition & 7 deletions src/DIRAC/Resources/Computing/PoolComputingElement.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
from DIRAC.Resources.Computing.ComputingElement import ComputingElement

from DIRAC.Resources.Computing.InProcessComputingElement import InProcessComputingElement
from DIRAC.Resources.Computing.SudoComputingElement import SudoComputingElement
from DIRAC.Resources.Computing.SingularityComputingElement import SingularityComputingElement

# Number of unix users to run job payloads with sudo
Expand All @@ -48,12 +47,7 @@ def executeJob(executableFile, proxy, taskID, inputs, **kwargs):

innerCESubmissionType = kwargs.pop("InnerCESubmissionType")

if innerCESubmissionType == "Sudo":
ce = SudoComputingElement("Task-" + str(taskID))
payloadUser = kwargs.get("PayloadUser")
if payloadUser:
ce.setParameters({"PayloadUser": payloadUser})
elif innerCESubmissionType == "Singularity":
if innerCESubmissionType == "Singularity":
ce = SingularityComputingElement("Task-" + str(taskID))
else:
ce = InProcessComputingElement("Task-" + str(taskID))
Expand Down
223 changes: 0 additions & 223 deletions src/DIRAC/Resources/Computing/SudoComputingElement.py

This file was deleted.

0 comments on commit 69978f3

Please sign in to comment.