change duration.fromObject

Signed-off-by: blakeromano-il <blake.romano@imaginelearning.com>
This commit is contained in:
blakeromano-il
2022-05-18 11:53:39 -04:00
parent a9f6b49f1c
commit 87d4388493
2 changed files with 2 additions and 2 deletions
@@ -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 }));
}
}
})();