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
f.DurationVar(&cfg.Interval, prefix+"interval", 5*time.Minute, "How often the scheduler should plan jobs.")
33
-
f.DurationVar(&cfg.TargetRecordConsumptionPeriod, prefix+"target-records-spanning-period", time.Hour, "Period used by the planner to calculate the start and end offset such that each job consumes records spanning the target period.")
34
37
f.StringVar(&cfg.ConsumerGroup, prefix+"consumer-group", "block-scheduler", "Consumer group used by block scheduler to track the last consumed offset.")
35
38
f.Int64Var(&cfg.LookbackPeriod, prefix+"lookback-period", -2, "Lookback period in milliseconds used by the scheduler to plan jobs when the consumer group has no commits. -1 consumes from the latest offset. -2 consumes from the start of the partition.")
39
+
f.StringVar(
40
+
&cfg.Strategy,
41
+
prefix+"strategy",
42
+
RecordCountStrategy,
43
+
fmt.Sprintf(
44
+
"Strategy used by the planner to plan jobs. One of %s",
45
+
strings.Join(validStrategies, ", "),
46
+
),
47
+
)
48
+
f.Int64Var(&cfg.TargetRecordCount, prefix+"target-record-count", 1000, "Target record count used by the planner to plan jobs.")
0 commit comments