@@ -39,7 +40,7 @@ class UserJobReceiver(MessageReceiver.MessageReceiver):
# convert body text to ArgoUserJob
try:
userjob=ArgoUserJob.deserialize(body)
userjob=Serializer.deserialize(body)
exceptException,e:
logger.error(' received exception while deserializing message to create ArgoUserJob, \nexception message: '+str(e)+'\n message body: \n'+body+' \n cannot continue with this job, ignoring it and moving on.')
# acknoledge message
...
...
@@ -48,12 +49,12 @@ class UserJobReceiver(MessageReceiver.MessageReceiver):
message='received an exception while parsing the incomping user job. Exception: '+str(e)+'; userjob id = '+str(userjob.job_id)+'; argo_job_id = '+str(argojob.argo_job_id)+'; job_name = '+userjob.job_name
message='received an exception while parsing the incomping user job. Exception: '+str(e)+'; userjob id = '+str(userjob['user_id'])+'; argo_job_id = '+str(argojob.argo_job_id)+'; job_name = '+userjob['name']
logger.error(message)
# delete DB connection
delconnections[db_connection_id]
logger.debug('added user job')
else:
logger.error('received user job message with no body')
logger.debug('current_subjob_pk_index='+str(self.current_subjob_pk_index)+' number of subjobs = '+str(len(subjob_list))+' subjobs = '+str(subjob_list))
parser.add_argument('-e','--executable',dest='executable',help='application executable with full path',required=True)
parser.add_argument('-c','--config-script',dest='config_script',help='configuration script takes a single file and parses its content to output the command line, therefore allowing users to pass command line args in a safe way.',required=True)
parser.add_argument('-r','--preprocess',dest='preprocess',help='preprocessing script with full path that can be used to process data in the job working directory before the job is submitted to the local batch queue.',required=True)
parser.add_argument('-o','--postprocess',dest='postprocess',help='postprocessing script with full path that can be used to postprocess data in the job working directory after the job is submitted to the local batch queue.',required=True)
parser.add_argument('-r','--preprocess',dest='preprocess',help='preprocessing script with full path that can be used to process data in the job working directory before the job is submitted to the local batch queue.',default='')
parser.add_argument('-o','--postprocess',dest='postprocess',help='postprocessing script with full path that can be used to postprocess data in the job working directory after the job is submitted to the local batch queue.',default='')
parser.add_argument('-w','--no-checks',dest='no_checks',help='Typically an exception is thrown if one of the paths specified does not exist, but this flag disables that behavior.',action='store_true')
defhandle(self,*args,**options):
...
...
@@ -31,11 +34,11 @@ class Command(BaseCommand):
raiseException('config-script not found: '+str(options['config_script']))