old_contents: from baseplugin import BasePlugin
  from basejob import BaseJob
  
  PLUGIN_NAME = "sample"
  
  class Job(BaseJob):
  
      def __init__(self, logger, infos):
          BaseJob.__init__(self, logger, infos)
  
      def go(self):
          self.log('Sample plugin online !')
  
  class Plugin(BasePlugin):
  
      def __init__(self, log, url=None):
          BasePlugin.__init__(self, PLUGIN_NAME, log, url)
          pass
  
      def create_new_job(self, job):
          return Job(self.logger, job)
  
  
new_contents: from baseplugin import BasePlugin
  from basejob import BaseJob
  import time
  
  PLUGIN_NAME = "sample"
  
  class Job(BaseJob):
  
      def __init__(self, logger, infos):
          BaseJob.__init__(self, logger, infos)
  
      def go(self):
          self.log('Sample plugin online !')
          time.sleep(4)
          self.finished = True;
  
  class Plugin(BasePlugin):
  
      def __init__(self, log, url=None):
          BasePlugin.__init__(self, PLUGIN_NAME, log, url)
          pass
  
      def create_new_job(self, job):
          return Job(self.logger, job)
  
  
subject: Make the sample plugin wait a bit before returning.