RecordSlotSizeWorkflow monitors replication slot size
(ctx workflow.Context)
| 10 | |
| 11 | // RecordSlotSizeWorkflow monitors replication slot size |
| 12 | func RecordSlotSizeWorkflow(ctx workflow.Context) error { |
| 13 | if ctx.Err() != nil { |
| 14 | return ctx.Err() |
| 15 | } |
| 16 | ctx = workflow.WithActivityOptions(ctx, workflow.ActivityOptions{ |
| 17 | StartToCloseTimeout: time.Hour, |
| 18 | }) |
| 19 | slotSizeFuture := workflow.ExecuteActivity(ctx, flowable.RecordSlotSizes) |
| 20 | return slotSizeFuture.Get(ctx, nil) |
| 21 | } |
| 22 | |
| 23 | // HeartbeatFlowWorkflow sends WAL heartbeats |
| 24 | func HeartbeatFlowWorkflow(ctx workflow.Context) error { |
nothing calls this directly
no test coverage detected