ensureNoActiveDependents :: (TS m, MonadError JobError m) => Job.Name -> m ()
ensureNoActiveDependents = mapM_ (throwError . OutstandingDependants) . nonEmpty . keys <=< ES.getDependents
ensureNoActiveDependents :: (TS m, MonadError JobError m) => Job.Name -> m ()
ensureNoActiveDependents = mapM_ (throwError . OutstandingDependants) . nonEmpty . keys <=< ES.getDependents
ensureNoActiveDependents = mapM_ (throwError . OutstandingDependants) . nonEmpty . keys <=< ES.getDependents