code: def check_status(self):
          
          # Recompute the status of the tasks
          # Ignore OK and LOCKED tasks.
          for task in self:
              if task.status in (task.S_OK, task.S_LOCKED): continue
              task.check_status()
  
          # Take into account possible dependencies. Use a list instead of generators
          for task in self:
              if task.status == task.S_LOCKED: continue
              if task.status < task.S_SUB and all(status == task.S_OK for status in task.deps_status):
                  task.set_status(task.S_READY, "Status set to Ready")
docs: Check the status of the tasks.