fix: createFactRetriever not supporting timeout

Signed-off-by: Niek te Grootenhuis <niek.te.grootenhuis@alliander.com>
This commit is contained in:
Niek te Grootenhuis
2022-08-19 13:51:49 +02:00
parent 0dc129aa41
commit 2e0689e536
4 changed files with 14 additions and 2 deletions
+2 -1
View File
@@ -21,6 +21,7 @@ import {
TokenManager,
} from '@backstage/backend-common';
import { Logger } from 'winston';
import { HumanDuration } from '@backstage/backend-tasks';
/**
* A container for facts. The shape of the fact records needs to correspond to the FactSchema with same `ref` value.
@@ -270,7 +271,7 @@ export type FactRetrieverRegistration = {
* defaults to 5 minutes.
*
*/
timeout?: Duration;
timeout?: Duration | HumanDuration;
/**
* Fact lifecycle definition