Documentation
¶
Index ¶
- type CleanupQueueSignalsRequest
- type Worker
- type WorkerParams
- type Workflows
- func (w Workflows) All() []any
- func (w *Workflows) BackfillBlobs(ctx workflow.Context, req blobbackfill.RangeRequest) error
- func (w *Workflows) BackfillBlobsDay(ctx workflow.Context, req blobbackfill.DayRequest) (blobbackfill.DayResult, error)
- func (w *Workflows) BackfillRunnerHealthcheckEmitters(ctx workflow.Context, req runnerhealthcheckbackfill.Request) error
- func (w *Workflows) CleanupQueueSignals(ctx workflow.Context, req CleanupQueueSignalsRequest) error
- func (w *Workflows) ListWorkflowFns() []any
- func (w *Workflows) Metrics(ctx workflow.Context) error
- func (w *Workflows) VerifyBlobs(ctx workflow.Context, req blobverify.RangeRequest) error
- func (w *Workflows) VerifyBlobsDay(ctx workflow.Context, req blobverify.DayRequest) (blobverify.DayResult, error)
- type WorkflowsParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CleanupQueueSignalsRequest ¶ added in v0.19.1031
type CleanupQueueSignalsRequest struct {
TotalDeleted int64 `json:"total_deleted"`
}
type WorkerParams ¶
type WorkerParams struct {
fx.In
Cfg *internal.Config
Tclient temporalclient.Client
Wkflows *Workflows
Acts *activities.Activities
L *zap.Logger
LC fx.Lifecycle
Interceptors []interceptor.WorkerInterceptor `group:"interceptors"`
}
type Workflows ¶
type Workflows struct {
// contains filtered or unexported fields
}
func NewWorkflows ¶
func NewWorkflows(params WorkflowsParams) (*Workflows, error)
func (*Workflows) BackfillBlobs ¶ added in v0.19.1024
func (w *Workflows) BackfillBlobs(ctx workflow.Context, req blobbackfill.RangeRequest) error
BackfillBlobs enumerates the day-buckets with un-mirrored rows and drains them one (table, day) child at a time, continue-as-newing to keep history bounded. Running sequentially keeps the per-activity S3 rate limiter acting globally.
func (*Workflows) BackfillBlobsDay ¶ added in v0.19.1024
func (w *Workflows) BackfillBlobsDay(ctx workflow.Context, req blobbackfill.DayRequest) (blobbackfill.DayResult, error)
BackfillBlobsDay drains every un-mirrored row created within its day.
func (*Workflows) BackfillRunnerHealthcheckEmitters ¶ added in v0.19.1062
func (w *Workflows) BackfillRunnerHealthcheckEmitters(ctx workflow.Context, req runnerhealthcheckbackfill.Request) error
BackfillRunnerHealthcheckEmitters drains the runner fleet in keyset-paginated batches, ensuring each runner has a runner-healthcheck emitter (creating and starting the emitter workflow for the ones that don't). It continue-as-news every backfillEmitterBatchesPerRun batches so history stays bounded, and exposes a progress query. Idempotent and safe to re-run.
func (*Workflows) CleanupQueueSignals ¶ added in v0.19.990
func (w *Workflows) CleanupQueueSignals(ctx workflow.Context, req CleanupQueueSignalsRequest) error
func (*Workflows) ListWorkflowFns ¶ added in v0.19.850
ListWorkflowFns returns the list of workflow functions for registration
func (*Workflows) VerifyBlobs ¶ added in v0.19.1024
func (w *Workflows) VerifyBlobs(ctx workflow.Context, req blobverify.RangeRequest) error
VerifyBlobs enumerates the day-buckets with rows and walks them one (table, day) child at a time, continue-as-newing to keep history bounded. Running sequentially keeps the per-activity S3 rate limiter acting globally.
func (*Workflows) VerifyBlobsDay ¶ added in v0.19.1024
func (w *Workflows) VerifyBlobsDay(ctx workflow.Context, req blobverify.DayRequest) (blobverify.DayResult, error)
VerifyBlobsDay verifies every row created within its day, walking by id cursor.