@@ -123,9 +123,6 @@ def _update_status(self, status, message, status_percentage, clean=True):
123123 self .wps_request .preprocess_response = None
124124
125125 LOGGER .debug ("_update_status: status={}, clean={}" .format (status , clean ))
126- self ._update_status_doc ()
127- if self .store_status_file :
128- self ._update_status_file ()
129126 if clean :
130127 if self .status == WPS_STATUS .SUCCEEDED or self .status == WPS_STATUS .FAILED :
131128 LOGGER .debug ("clean workdir: status={}" .format (status ))
@@ -145,26 +142,6 @@ def update_status(self, message, status_percentage=None):
145142 status_percentage = self .status_percentage
146143 self ._update_status (self .status , message , status_percentage , False )
147144
148- def _update_status_doc (self ):
149- try :
150- # rebuild the doc
151- self .doc = StatusResponse (self .wps_request .version , self .uuid ,
152- get_default_response_mimetype ()).get_data (as_text = True )
153- self .content_type = get_default_response_mimetype ()
154- except Exception as e :
155- raise NoApplicableCode ('Building Response Document failed with : {}' .format (e ))
156-
157- def _update_status_file (self ):
158- # TODO: check if file/directory is still present, maybe deleted in mean time
159- try :
160- # update the status xml file
161- self .process .status_store .write (
162- self .doc ,
163- self .process .status_filename ,
164- data_format = FORMATS .XML )
165- except Exception as e :
166- raise NoApplicableCode ('Writing Response Document failed with : {}' .format (e ))
167-
168145 def _process_accepted (self ):
169146 percent = int (self .status_percentage )
170147 if percent > 99 :
@@ -233,8 +210,7 @@ def as_json_for_execute_template(self):
233210 }
234211
235212 if self .store_status_file :
236- if self .process .status_location :
237- data ["status_location" ] = self .process .status_url
213+ data ["status_location" ] = self .process .status_url
238214
239215 if self .status == WPS_STATUS .ACCEPTED :
240216 self .message = 'PyWPS Process {} accepted' .format (self .process .identifier )
0 commit comments