Merge pull request #14017 from leon-vg/tech-insights-initial-delay
[Tech Insights] Add a delay to the fact retrievers to prevent cold-start errors
This commit is contained in:
@@ -75,6 +75,7 @@ export type FactRetrieverRegistration = {
|
||||
cadence?: string;
|
||||
timeout?: Duration | HumanDuration;
|
||||
lifecycle?: FactLifecycle;
|
||||
initialDelay?: Duration | HumanDuration;
|
||||
};
|
||||
|
||||
// @public
|
||||
|
||||
@@ -278,4 +278,11 @@ export type FactRetrieverRegistration = {
|
||||
* If defined this value will be used to determine expired items which will deleted when this fact retriever is run
|
||||
*/
|
||||
lifecycle?: FactLifecycle;
|
||||
|
||||
/**
|
||||
* A duration to determine the initial delay for the fact retriever. Useful for cold start scenarios when e.g. the
|
||||
* catalog backend is not yet available. Defaults to 5 seconds.
|
||||
*
|
||||
*/
|
||||
initialDelay?: Duration | HumanDuration;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user