mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Feature/acksync response writer (#1267)
This implements a "detached" mechanism to get an ack from the runner once it actually starts to run a function. In this scenario the response returned back is just a 202 if we placed the function in a specific time-frame. If we hit some errors or we fail to place the fn in time we return back different errors.
This commit is contained in:
committed by
Tolga Ceylan
parent
2df6c8d349
commit
182db94fad
@@ -13,7 +13,8 @@ import (
|
||||
// Placer implements a placement strategy for calls that are load-balanced
|
||||
// across runners in a pool
|
||||
type Placer interface {
|
||||
PlaceCall(rp RunnerPool, ctx context.Context, call RunnerCall) error
|
||||
PlaceCall(ctx context.Context, rp RunnerPool, call RunnerCall) error
|
||||
GetPlacerConfig() PlacerConfig
|
||||
}
|
||||
|
||||
// RunnerPool is the abstraction for getting an ordered list of runners to try for a call
|
||||
|
||||
Reference in New Issue
Block a user