Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
atsareg committed Jul 9, 2013
1 parent 5126f59 commit 0c82f4f
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions WorkloadManagementSystem/Agent/JobAgent.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,6 @@ def execute( self ):
if 'Value' in result and result[ 'Value' ]:
proxyChain = result[ 'Value' ]

# Is this necessary at all?
saveJDL = self.__saveJobJDLRequest( jobID, jobJDL )
#self.__report(jobID,'Matched','Job Prepared to Submit')

#resourceParameters = self.__getJDLParameters( resourceJDL )
#if not resourceParameters['OK']:
# return resourceParameters
#resourceParams = resourceParameters['Value']

software = self.__checkInstallSoftware( jobID, params, ceDict )
if not software['OK']:
self.log.error( 'Failed to install software for job %s' % ( jobID ) )
Expand Down Expand Up @@ -572,19 +563,6 @@ def __createJobWrapper( self, jobID, jobParams, resourceParams, optimizerParams
'sitePython' : siteRootPython }
return S_OK( data )

#############################################################################
def __saveJobJDLRequest( self, jobID, jobJDL ):
"""Save job JDL local to JobAgent.
"""
classAdJob = ClassAd( jobJDL )
classAdJob.insertAttributeString( 'LocalCE', self.ceName )
jdlFileName = jobID + '.jdl'
jdlFile = open( jdlFileName, 'w' )
jdl = classAdJob.asJDL()
jdlFile.write( jdl )
jdlFile.close()
return S_OK( jdlFileName )

#############################################################################
def __requestJob( self, ceDict ):
"""Request a single job from the matcher service.
Expand Down

0 comments on commit 0c82f4f

Please sign in to comment.