mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fn: Status should expose if data was served from cache. (#1123)
This is useful in scenarios where gRPC client might want to reliably observe/report the status latency metrics and remove any possible duplicates. If the status query was served from cache, then these latencies show last execution latency.
This commit is contained in:
@@ -36,6 +36,7 @@ type MTLSRunnerFactory func(addr, certCommonName string, pki *PKIData) (Runner,
|
||||
type RunnerStatus struct {
|
||||
ActiveRequestCount int32 // Number of active running requests on Runner
|
||||
StatusFailed bool // True if Status execution failed
|
||||
Cached bool // True if Status was provided from cache
|
||||
StatusId string // Call ID for Status
|
||||
Details string // General/Debug Log information
|
||||
ErrorCode int32 // If StatusFailed, then error code is set
|
||||
|
||||
Reference in New Issue
Block a user