Serve only one request and garbage collect (#1978)
Adding once only execution pattern to pool manager based functions. This is for use cases where you don't want to share the samne pod for another execution instance!
This commit is contained in:
@@ -104,6 +104,8 @@ func (opts *CreateSubCommand) complete(input cli.Input) error {
|
||||
|
||||
requestsPerPod := input.Int(flagkey.FnRequestsPerPod)
|
||||
|
||||
fnOnceOnly := input.Bool(flagkey.FnOnceOnly)
|
||||
|
||||
pkgName := input.String(flagkey.FnPackageName)
|
||||
|
||||
secretNames := input.StringSlice(flagkey.FnSecret)
|
||||
@@ -304,6 +306,7 @@ func (opts *CreateSubCommand) complete(input cli.Input) error {
|
||||
IdleTimeout: &fnIdleTimeout,
|
||||
Concurrency: fnConcurrency,
|
||||
RequestsPerPod: requestsPerPod,
|
||||
OnceOnly: fnOnceOnly,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user