code: def done(self):
          
          logger.info('Marking %s as done', self)
  
          fn = self.get_path()
          try:
              os.makedirs(os.path.dirname(fn))
          except OSError:
              pass
          open(fn, 'w').close()
docs: Creates temporary file to mark the task as `done`