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:
Johan Haals
2022-10-24 13:29:48 +02:00
committed by GitHub
6 changed files with 32 additions and 2 deletions
+1
View File
@@ -75,6 +75,7 @@ export type FactRetrieverRegistration = {
cadence?: string;
timeout?: Duration | HumanDuration;
lifecycle?: FactLifecycle;
initialDelay?: Duration | HumanDuration;
};
// @public
+7
View File
@@ -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;
};