Documentation ¶
Index ¶
- Constants
- func CheckDependencyPolicyAgainstNodeEventList(logger *l.Logger, targetNodeDepPol *sc.DependencyPolicyDef, ...) (sc.ReadyToRunNodeCmdType, int16, error)
- func SafeProcessBatch(envConfig *env.EnvConfig, logger *l.Logger, pCtx *ctx.MessageProcessingContext, ...) (wfmodel.NodeBatchStatusType, proc.BatchStats, error)
- func UpdateNodeStatusFromBatches(logger *l.Logger, pCtx *ctx.MessageProcessingContext) (wfmodel.NodeBatchStatusType, bool, error)
- func UpdateRunStatusFromNodes(logger *l.Logger, pCtx *ctx.MessageProcessingContext) error
- type DaemonCmdType
Constants ¶
View Source
const DlxSuffix string = "_dlx"
Variables ¶
This section is empty.
Functions ¶
func CheckDependencyPolicyAgainstNodeEventList ¶
func CheckDependencyPolicyAgainstNodeEventList(logger *l.Logger, targetNodeDepPol *sc.DependencyPolicyDef, events wfmodel.DependencyNodeEvents) (sc.ReadyToRunNodeCmdType, int16, error)
func SafeProcessBatch ¶
func SafeProcessBatch(envConfig *env.EnvConfig, logger *l.Logger, pCtx *ctx.MessageProcessingContext, readerNodeRunId int16, lookupNodeRunId int16) (wfmodel.NodeBatchStatusType, proc.BatchStats, error)
func UpdateNodeStatusFromBatches ¶
func UpdateNodeStatusFromBatches(logger *l.Logger, pCtx *ctx.MessageProcessingContext) (wfmodel.NodeBatchStatusType, bool, error)
func UpdateRunStatusFromNodes ¶
func UpdateRunStatusFromNodes(logger *l.Logger, pCtx *ctx.MessageProcessingContext) error
Types ¶
type DaemonCmdType ¶
type DaemonCmdType int8
const ( DaemonCmdNone DaemonCmdType = 0 // Should never see this DaemonCmdAckSuccess DaemonCmdType = 2 // Best case DaemonCmdRejectAndRetryLater DaemonCmdType = 3 // Node dependencies are not ready, wait with proessing this node DaemonCmdReconnectDb DaemonCmdType = 4 // Db workflow error, try to reconnect DaemonCmdQuit DaemonCmdType = 5 // Shutdown command was received DaemonCmdAckWithError DaemonCmdType = 6 // There was a processing error: either some serious biz logic re-trying will not help, or it was a data table error (we consider it persistent), so ack it DaemonCmdReconnectQueue DaemonCmdType = 7 // Queue error, try to reconnect )
func AmqpFullReconnectCycle ¶
func ProcessDataBatchMsg ¶
func ProcessDataBatchMsg(envConfig *env.EnvConfig, logger *l.Logger, msgTs int64, dataBatchInfo *wfmodel.MessagePayloadDataBatch) DaemonCmdType
func (DaemonCmdType) ToString ¶
func (daemonCmd DaemonCmdType) ToString() string
Click to show internal directories.
Click to hide internal directories.