code: def is_trivial_worker(self, state):
          
          if self.assistant:
              return False
          return all(not task.resources for task in self.get_tasks(state, PENDING))
docs: If it's not an assistant having only tasks that are without
          requirements.
  
          We have to pass the state parameter for optimization reasons.