feature (server): add additional option for downstream workers DAG (#2278)
This commit is contained in:
2 files changed
+14
No files matched your search
@@ -40,6 +40,7 @@ type options struct {
|
||||
withTestPkiWorkerKeyId *string
|
||||
withWorkerType WorkerType
|
||||
withRoot string
|
||||
withStopAfter uint
|
||||
}
|
||||
|
||||
func getDefaultOptions() options {
|
||||
@@ -180,3 +181,10 @@ func WithRoot(workerId string) Option {
|
||||
o.withRoot = workerId
|
||||
}
|
||||
}
|
||||
|
||||
// WithStopAfter provides an optional stop after count
|
||||
func WithStopAfter(stopAfter uint) Option {
|
||||
return func(o *options) {
|
||||
o.withStopAfter = stopAfter
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user