You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// NewWorkerCommand constructs the "worker" Cobra command which initializes and runs the worker service using loaded configuration and composed FX modules.
75
+
// The command registers worker-specific flags via addWorkerFlags and common service, bunconnect, and OTLP flags, and exposes the --worker-grpc-address flag (default ":8081").
76
+
// When executed it loads configuration and starts the service with the configured modules and a gRPC server.
Copy file name to clipboardExpand all lines: internal/api/v2/controllers_buckets_delete.go
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ import (
9
9
"github.com/formancehq/go-libs/v3/api"
10
10
)
11
11
12
+
// deleteBucket constructs an HTTP handler that deletes the bucket specified by the "bucket" URL parameter.
13
+
// The handler invokes systemController.DeleteBucket with the request context; if deletion fails it responds with an internal server error, otherwise it responds with 204 No Content.
Copy file name to clipboardExpand all lines: internal/storage/system/migrations.go
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ import (
11
11
"github.com/uptrace/bun"
12
12
)
13
13
14
+
// GetMigrator creates a Migrator configured with the package's system schema migrations for the given database.
15
+
// It appends the system schema option to any provided migration options, registers all system migrations, and returns the configured *migrations.Migrator.
Copy file name to clipboardExpand all lines: pkg/testserver/worker.go
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,30 +8,36 @@ import (
8
8
"time"
9
9
)
10
10
11
+
// LogsHashBlockMaxSizeInstrumentation returns an instrumentation function that appends the worker async block hasher max block size flag and the provided size to the run configuration's CLI arguments.
12
+
// The returned function adds the flag with the size formatted as a decimal string and always returns nil.
// LogsHashBlockCRONSpecInstrumentation returns an instrumentation function that appends the async block hasher CRON schedule flag and the given spec to a run configuration.
21
+
// The spec parameter is the CRON schedule expression to be passed as the value for the WorkerAsyncBlockHasherScheduleFlag.
// BucketCleanupRetentionPeriodInstrumentation creates an instrumentation function that appends the bucket cleanup retention period flag and its value to a test run configuration.
// BucketCleanupCRONSpecInstrumentation returns an instrumentation function that appends the bucket cleanup CRON schedule flag and the provided CRON spec to a test run configuration.
0 commit comments