feat: add initialDelay as option

Signed-off-by: Leon <leonvanginneken@gmail.com>
This commit is contained in:
Leon
2022-10-21 15:09:34 +02:00
parent 7f93a25ac7
commit 8106afc7fd
2 changed files with 15 additions and 2 deletions
+7
View File
@@ -279,4 +279,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;
};