@@ -148,23 +148,23 @@ def run(self):
148
148
self .bus .Listen ()
149
149
150
150
def SpawnProcess (self ):
151
- logger = logging .getLogger ("ProcessBot.SpawnProcess" )
152
- self .ensure_output_dir_exists ()
151
+ try :
152
+ logger = logging .getLogger ("ProcessBot.SpawnProcess" )
153
+ self .ensure_output_dir_exists ()
153
154
154
- #set the actual value of input parameters to input parameters definitions
155
- self ._input_parameters_defs .set_values ( self ._input_values )
155
+ #set the actual value of input parameters to input parameters definitions
156
+ self ._input_parameters_defs .set_values ( self ._input_values )
156
157
157
- #execute actions associated to input parameters
158
- self ._input_params_actions .execute ( self ._input_parameters_defs )
158
+ #execute actions associated to input parameters
159
+ self ._input_params_actions .execute ( self ._input_parameters_defs )
159
160
160
- #prepare cmd line
161
- cmd = self ._executable_cmd + " " + self ._input_params_actions .get_cmd_line ()
161
+ #prepare cmd line
162
+ cmd = self ._executable_cmd + " " + self ._input_params_actions .get_cmd_line ()
162
163
163
- #spawn the computational job process
164
- invoked_process = subprocess .Popen (args = cmd .split (), cwd = self ._executable_path , stdin = subprocess .PIPE , stdout = subprocess .PIPE , stderr = subprocess .STDOUT , shell = False )
165
- logger .info ("process " + self .service + " created with PId " + str (invoked_process .pid ) + " and command line: " + cmd )
164
+ #spawn the computational job process
165
+ invoked_process = subprocess .Popen (args = cmd .split (), cwd = self ._executable_path , stdin = subprocess .PIPE , stdout = subprocess .PIPE , stderr = subprocess .STDOUT , shell = False )
166
+ logger .info ("process " + self .service + " created with PId " + str (invoked_process .pid ) + " and command line: " + cmd )
166
167
167
- try :
168
168
#read the resource file
169
169
rc = resource_cleaner .Resource .create_from_file (self ._uniqueExeId , os .getpid ())
170
170
#add the pid of the computational job to the resource file
0 commit comments