napkin-runtime-2.0.0
Safe HaskellNone
LanguageGHC2024

Napkin.Run.Metadata

Synopsis

Documentation

data LastRunInfos #

Instances

Instances details
FromJSON LastRunInfos # 
Instance details

Defined in Napkin.Run.Metadata

ToJSON LastRunInfos # 
Instance details

Defined in Napkin.Run.Metadata

Generic LastRunInfos # 
Instance details

Defined in Napkin.Run.Metadata

Associated Types

type Rep LastRunInfos 
Instance details

Defined in Napkin.Run.Metadata

type Rep LastRunInfos = D1 ('MetaData "LastRunInfos" "Napkin.Run.Metadata" "napkin-runtime-2.0.0-Ct8w2lsjRa3AUoSevHfCKx" 'False) (C1 ('MetaCons "LastRunInfos" 'PrefixI 'True) (S1 ('MetaSel ('Just "lastRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe LastRunInfo)) :*: S1 ('MetaSel ('Just "lastSuccessfulRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe LastSuccessfulRunInfo))))
Show LastRunInfos # 
Instance details

Defined in Napkin.Run.Metadata

type Rep LastRunInfos # 
Instance details

Defined in Napkin.Run.Metadata

type Rep LastRunInfos = D1 ('MetaData "LastRunInfos" "Napkin.Run.Metadata" "napkin-runtime-2.0.0-Ct8w2lsjRa3AUoSevHfCKx" 'False) (C1 ('MetaCons "LastRunInfos" 'PrefixI 'True) (S1 ('MetaSel ('Just "lastRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe LastRunInfo)) :*: S1 ('MetaSel ('Just "lastSuccessfulRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe LastSuccessfulRunInfo))))

recordedRunDAG :: (HasBackendQueryStats bk, Typeable bk) => KVS -> Task (Executable bk) -> (AppName, RunId) -> (SpecTableName -> Ref Table) -> Map (Ref Table) NormalizedTable -> Combo bk (TaskResult bk) -> Combo bk (Either SomeException (TaskResult bk)) #

Do a run, recording the instance in the database. Return the recorded instance along with the run results.

data SuccessfulTaskDuration #

Instances

Instances details
Generic SuccessfulTaskDuration # 
Instance details

Defined in Napkin.Run.Metadata

Associated Types

type Rep SuccessfulTaskDuration 
Instance details

Defined in Napkin.Run.Metadata

type Rep SuccessfulTaskDuration = D1 ('MetaData "SuccessfulTaskDuration" "Napkin.Run.Metadata" "napkin-runtime-2.0.0-Ct8w2lsjRa3AUoSevHfCKx" 'False) (C1 ('MetaCons "SuccessfulTaskDuration" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AppName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TaskId)))
Eq SuccessfulTaskDuration # 
Instance details

Defined in Napkin.Run.Metadata

Ord SuccessfulTaskDuration # 
Instance details

Defined in Napkin.Run.Metadata

MetadataPayload SuccessfulTaskDuration SuccessfulTaskDurationInfo # 
Instance details

Defined in Napkin.Run.Metadata

type Rep SuccessfulTaskDuration # 
Instance details

Defined in Napkin.Run.Metadata

type Rep SuccessfulTaskDuration = D1 ('MetaData "SuccessfulTaskDuration" "Napkin.Run.Metadata" "napkin-runtime-2.0.0-Ct8w2lsjRa3AUoSevHfCKx" 'False) (C1 ('MetaCons "SuccessfulTaskDuration" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AppName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TaskId)))

data SuccessfulTaskDurationInfo #

Instances

Instances details
FromJSON SuccessfulTaskDurationInfo # 
Instance details

Defined in Napkin.Run.Metadata

ToJSON SuccessfulTaskDurationInfo # 
Instance details

Defined in Napkin.Run.Metadata

Default SuccessfulTaskDurationInfo # 
Instance details

Defined in Napkin.Run.Metadata

Generic SuccessfulTaskDurationInfo # 
Instance details

Defined in Napkin.Run.Metadata

Associated Types

type Rep SuccessfulTaskDurationInfo 
Instance details

Defined in Napkin.Run.Metadata

type Rep SuccessfulTaskDurationInfo = D1 ('MetaData "SuccessfulTaskDurationInfo" "Napkin.Run.Metadata" "napkin-runtime-2.0.0-Ct8w2lsjRa3AUoSevHfCKx" 'False) (C1 ('MetaCons "SuccessfulTaskDurationInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "previousRuns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map UTCTime NominalDiffTime))))
MetadataPayload SuccessfulTaskDuration SuccessfulTaskDurationInfo # 
Instance details

Defined in Napkin.Run.Metadata

type Rep SuccessfulTaskDurationInfo # 
Instance details

Defined in Napkin.Run.Metadata

type Rep SuccessfulTaskDurationInfo = D1 ('MetaData "SuccessfulTaskDurationInfo" "Napkin.Run.Metadata" "napkin-runtime-2.0.0-Ct8w2lsjRa3AUoSevHfCKx" 'False) (C1 ('MetaCons "SuccessfulTaskDurationInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "previousRuns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map UTCTime NominalDiffTime))))

newtype TableLastRun #

Constructors

TableLastRun (Ref Table) 

Instances

Instances details
Generic TableLastRun # 
Instance details

Defined in Napkin.Run.Metadata

Associated Types

type Rep TableLastRun 
Instance details

Defined in Napkin.Run.Metadata

type Rep TableLastRun = D1 ('MetaData "TableLastRun" "Napkin.Run.Metadata" "napkin-runtime-2.0.0-Ct8w2lsjRa3AUoSevHfCKx" 'True) (C1 ('MetaCons "TableLastRun" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table))))
Eq TableLastRun # 
Instance details

Defined in Napkin.Run.Metadata

Ord TableLastRun # 
Instance details

Defined in Napkin.Run.Metadata

MetadataPayload TableLastRun LastRunInfo # 
Instance details

Defined in Napkin.Run.Metadata

Methods

keyText :: TableLastRun -> Text #

type Rep TableLastRun # 
Instance details

Defined in Napkin.Run.Metadata

type Rep TableLastRun = D1 ('MetaData "TableLastRun" "Napkin.Run.Metadata" "napkin-runtime-2.0.0-Ct8w2lsjRa3AUoSevHfCKx" 'True) (C1 ('MetaCons "TableLastRun" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table))))

data LastRunInfo #

Instances

Instances details
FromJSON LastRunInfo # 
Instance details

Defined in Napkin.Run.Metadata

ToJSON LastRunInfo # 
Instance details

Defined in Napkin.Run.Metadata

Generic LastRunInfo # 
Instance details

Defined in Napkin.Run.Metadata

Associated Types

type Rep LastRunInfo 
Instance details

Defined in Napkin.Run.Metadata

type Rep LastRunInfo = D1 ('MetaData "LastRunInfo" "Napkin.Run.Metadata" "napkin-runtime-2.0.0-Ct8w2lsjRa3AUoSevHfCKx" 'False) (C1 ('MetaCons "LastRunInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "runId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RunId) :*: S1 ('MetaSel ('Just "appName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AppName)) :*: (S1 ('MetaSel ('Just "startedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: (S1 ('MetaSel ('Just "finishedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe UTCTime)) :*: S1 ('MetaSel ('Just "successful") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))))
Show LastRunInfo # 
Instance details

Defined in Napkin.Run.Metadata

MetadataPayload TableLastRun LastRunInfo # 
Instance details

Defined in Napkin.Run.Metadata

Methods

keyText :: TableLastRun -> Text #

type Rep LastRunInfo # 
Instance details

Defined in Napkin.Run.Metadata

type Rep LastRunInfo = D1 ('MetaData "LastRunInfo" "Napkin.Run.Metadata" "napkin-runtime-2.0.0-Ct8w2lsjRa3AUoSevHfCKx" 'False) (C1 ('MetaCons "LastRunInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "runId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RunId) :*: S1 ('MetaSel ('Just "appName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AppName)) :*: (S1 ('MetaSel ('Just "startedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: (S1 ('MetaSel ('Just "finishedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe UTCTime)) :*: S1 ('MetaSel ('Just "successful") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))))

newtype TableLastSuccessfulRun #

Instances

Instances details
Generic TableLastSuccessfulRun # 
Instance details

Defined in Napkin.Run.Metadata

Associated Types

type Rep TableLastSuccessfulRun 
Instance details

Defined in Napkin.Run.Metadata

type Rep TableLastSuccessfulRun = D1 ('MetaData "TableLastSuccessfulRun" "Napkin.Run.Metadata" "napkin-runtime-2.0.0-Ct8w2lsjRa3AUoSevHfCKx" 'True) (C1 ('MetaCons "TableLastSuccessfulRun" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table))))
Eq TableLastSuccessfulRun # 
Instance details

Defined in Napkin.Run.Metadata

Ord TableLastSuccessfulRun # 
Instance details

Defined in Napkin.Run.Metadata

MetadataPayload TableLastSuccessfulRun LastSuccessfulRunInfo # 
Instance details

Defined in Napkin.Run.Metadata

type Rep TableLastSuccessfulRun # 
Instance details

Defined in Napkin.Run.Metadata

type Rep TableLastSuccessfulRun = D1 ('MetaData "TableLastSuccessfulRun" "Napkin.Run.Metadata" "napkin-runtime-2.0.0-Ct8w2lsjRa3AUoSevHfCKx" 'True) (C1 ('MetaCons "TableLastSuccessfulRun" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table))))

data LastSuccessfulRunInfo #

Instances

Instances details
FromJSON LastSuccessfulRunInfo # 
Instance details

Defined in Napkin.Run.Metadata

ToJSON LastSuccessfulRunInfo # 
Instance details

Defined in Napkin.Run.Metadata

Generic LastSuccessfulRunInfo # 
Instance details

Defined in Napkin.Run.Metadata

Associated Types

type Rep LastSuccessfulRunInfo 
Instance details

Defined in Napkin.Run.Metadata

type Rep LastSuccessfulRunInfo = D1 ('MetaData "LastSuccessfulRunInfo" "Napkin.Run.Metadata" "napkin-runtime-2.0.0-Ct8w2lsjRa3AUoSevHfCKx" 'False) (C1 ('MetaCons "LastSuccessfulRunInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "runId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RunId) :*: S1 ('MetaSel ('Just "appName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AppName)) :*: (S1 ('MetaSel ('Just "startedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: S1 ('MetaSel ('Just "finishedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime))))
Show LastSuccessfulRunInfo # 
Instance details

Defined in Napkin.Run.Metadata

MetadataPayload TableLastSuccessfulRun LastSuccessfulRunInfo # 
Instance details

Defined in Napkin.Run.Metadata

type Rep LastSuccessfulRunInfo # 
Instance details

Defined in Napkin.Run.Metadata

type Rep LastSuccessfulRunInfo = D1 ('MetaData "LastSuccessfulRunInfo" "Napkin.Run.Metadata" "napkin-runtime-2.0.0-Ct8w2lsjRa3AUoSevHfCKx" 'False) (C1 ('MetaCons "LastSuccessfulRunInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "runId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RunId) :*: S1 ('MetaSel ('Just "appName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AppName)) :*: (S1 ('MetaSel ('Just "startedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: S1 ('MetaSel ('Just "finishedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime))))