Skip to content

Commit 242497d

Browse files
authored
Merge pull request #8109 from fstagni/addSetInputData
feat: added setInputData to JobState
2 parents 53b5681 + e57719f commit 242497d

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/DIRAC/WorkloadManagementSystem/Client/JobState/CachedJobState.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,9 @@ def resetJob(self, source=""):
364364
def getInputData(self):
365365
return self.__cacheResult("inputData", self.__jobState.getInputData)
366366

367+
def setInputData(self, inputData):
368+
return self.__jobState.setInputData(inputData)
369+
367370
def insertIntoTQ(self):
368371
if self.valid:
369372
self.__insertIntoTQ = True

src/DIRAC/WorkloadManagementSystem/Client/JobState/JobState.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
RIGHT_GET_INFO,
1212
RIGHT_RESCHEDULE,
1313
RIGHT_RESET,
14+
RIGHT_SUBMIT,
1415
)
1516
from DIRAC.WorkloadManagementSystem.Utilities.JobStatusUtility import JobStatusUtility
1617

@@ -317,6 +318,11 @@ def resetJob(self, source=""):
317318
def getInputData(self):
318319
return JobState.__db.jobDB.getInputData(self.__jid)
319320

321+
right_setInputData = RIGHT_SUBMIT
322+
323+
def setInputData(self, inputData):
324+
return JobState.__db.jobDB.setInputData(self.__jid, inputData)
325+
320326
right_insertIntoTQ = RIGHT_CHANGE_STATUS
321327

322328
def insertIntoTQ(self, manifest=None):

0 commit comments

Comments
 (0)