change duration.fromObject
Signed-off-by: blakeromano-il <blake.romano@imaginelearning.com>
This commit is contained in:
@@ -69,7 +69,7 @@ export class LocalTaskWorker {
|
||||
this.logger.warn(
|
||||
`Task worker failed unexpectedly, attempt number ${attemptNum}, ${e}`,
|
||||
);
|
||||
await sleep(Duration.fromISO('P1S'));
|
||||
await sleep(Duration.fromObject({ seconds: 1 }));
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
@@ -79,7 +79,7 @@ export class TaskWorker {
|
||||
this.logger.warn(
|
||||
`Task worker failed unexpectedly, attempt number ${attemptNum}, ${e}`,
|
||||
);
|
||||
await sleep(Duration.fromISO('P1S'));
|
||||
await sleep(Duration.fromObject({ seconds: 1 }));
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user