napkin-1.0.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Napkin.Spec.ExecutionPlan

Synopsis

Documentation

applyUpdateStrategies :: forall m b. MonadIO m => UTCTime -> (SpecTableName -> m Bool) -> History -> RawInterpretedSpec b -> TasksDAG Full b -> m (TasksDAG Table b) #

Evaluates update strategies, TODO: parallelize

tablesForUpdate :: forall m b. MonadIO m => UTCTime -> (SpecTableName -> m Bool) -> History -> ForcedTablesMap -> ValidatedInterpretedSpec b -> m (Set SpecTableName, TableExecutionReasonMap) #

tablesForUpdate discovers missing spec tables or containing old data, or those who's dependencies have changed, if the table has the appropriate update strategy. TODO: parallelize