fix: createFactRetriever not supporting timeout
Signed-off-by: Niek te Grootenhuis <niek.te.grootenhuis@alliander.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user