old_contents: from pywps import Process, LiteralInput, LiteralOutput
  from pywps.app.Common import Metadata
  
  
  class Sleep(Process):
      def __init__(self):
          inputs = [
              LiteralInput('delay', 'Delay between every update',
                           default='10', data_type='float')
          ]
          outputs = [
              LiteralOutput('sleep_output', 'Sleep Output', data_type='string')
          ]
  
          super(Sleep, self).__init__(
              self._handler,
              identifier='sleep',
              version='1.0',
              title='Sleep Process',
              abstract='This process will sleep for a given delay or 10 seconds if not a valid value',
              profile='',
              metadata=[Metadata('Sleep'), Metadata('Wait'), Metadata('Delay')],
              inputs=inputs,
              outputs=outputs,
              store_supported=True,
              status_supported=True
          )
  
      def _handler(self, request, response):
          import time
  
          sleep_delay = request.inputs['delay'][0].data
          if sleep_delay:
              sleep_delay = float(sleep_delay)
          else:
              sleep_delay = 10
  
          time.sleep(sleep_delay)
          response.update_status('PyWPS Process started. Waiting...', 20)
          time.sleep(sleep_delay)
          response.update_status('PyWPS Process started. Waiting...', 40)
          time.sleep(sleep_delay)
          response.update_status('PyWPS Process started. Waiting...', 60)
          time.sleep(sleep_delay)
          response.update_status('PyWPS Process started. Waiting...', 80)
          time.sleep(sleep_delay)
          response.outputs['sleep_output'].data = 'done sleeping'
  
          return response
  
new_contents: from pywps import Process, LiteralInput, LiteralOutput
  from pywps.app.Common import Metadata
  
  
  class Sleep(Process):
      def __init__(self):
          inputs = [
              LiteralInput('delay', 'Delay between every update',
                           default='10', data_type='float')
          ]
          outputs = [
              LiteralOutput('sleep_output', 'Sleep Output', data_type='string')
          ]
  
          super(Sleep, self).__init__(
              self._handler,
              identifier='sleep',
              version='1.0',
              title='Sleep Process',
              abstract='This process will sleep for a given delay or 10 seconds if not a valid value.',
              profile='',
              metadata=[
                  Metadata('User Guide', 'https://emu.readthedocs.io/en/latest/processes.html'),  # noqa
                  Metadata('PyWPS Demo', 'https://pywps-demo.readthedocs.io/en/latest/'),
              ],
              inputs=inputs,
              outputs=outputs,
              store_supported=True,
              status_supported=True
          )
  
      def _handler(self, request, response):
          import time
  
          sleep_delay = request.inputs['delay'][0].data
          if sleep_delay:
              sleep_delay = float(sleep_delay)
          else:
              sleep_delay = 10
  
          time.sleep(sleep_delay)
          response.update_status('PyWPS Process started. Waiting...', 20)
          time.sleep(sleep_delay)
          response.update_status('PyWPS Process started. Waiting...', 40)
          time.sleep(sleep_delay)
          response.update_status('PyWPS Process started. Waiting...', 60)
          time.sleep(sleep_delay)
          response.update_status('PyWPS Process started. Waiting...', 80)
          time.sleep(sleep_delay)
          response.outputs['sleep_output'].data = 'done sleeping'
  
          return response
  
subject: update sleep metadata