Skip to content

Commit d9a3a0c

Browse files
authored
Merge pull request #5973 from DIRACGridBot/cherry-pick-2-182b716f5-integration
[sweep:integration] fix: update PoolCE.innerCESubmissionType from JobAgent
2 parents ba577e3 + 45d6aea commit d9a3a0c

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

src/DIRAC/Resources/Computing/PoolComputingElement.py

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,26 @@
33
# Author : A.T.
44
########################################################################
55

6-
""" The Pool Computing Element is an "inner" CE (meaning it's used by a jobAgent inside a pilot)
6+
"""The Pool Computing Element is an "inner" CE (meaning it's used by a jobAgent inside a pilot)
77
8-
It's used running several jobs simultaneously in separate processes, managed by a ProcessPool
8+
It's used running several jobs simultaneously in separate processes, managed by a ProcessPool.
9+
10+
**Configuration Parameters**
11+
12+
LocalCEType:
13+
Configuration for the PoolCE submission can be done via the CE configuration such as::
14+
15+
LocalCEType = Pool
16+
17+
The Pool Computing Element is specific: it embeds an additional "inner" CE
18+
(`InProcess` by default, `Sudo`, `Singularity`). The "inner" CE can be specified such as::
19+
20+
LocalCEType = Pool/Singularity
21+
22+
NumberOfProcessors:
23+
Maximum number of processors that can be used to compute jobs.
24+
25+
**Code Documentation**
926
"""
1027
import os
1128
import concurrent.futures

src/DIRAC/WorkloadManagementSystem/Agent/JobAgent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ def _initializeComputingElement(self, localCE):
135135
self.log.warn("Can't instantiate a CE", ceInstance["Message"])
136136
return ceInstance
137137
self.computingElement = ceInstance["Value"]
138-
self.computingElement.ceParameters["InnerCESubmissionType"] = self.innerCESubmissionType
138+
self.computingElement.setParameters({"InnerCESubmissionType": self.innerCESubmissionType})
139+
139140
return S_OK()
140141

141142
#############################################################################

0 commit comments

Comments
 (0)