Skip to content

Commit 6a8b5b8

Browse files
author
Karl Ranna
authored
Merge pull request #119 from ExchangeUnion/feat/restart-arby-after-1h
feat: restart arby every hour
2 parents afac886 + 0f15de8 commit 6a8b5b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ export const getStartShutdown$ = (): Observable<unknown> => {
2626
process.on('SIGTERM', () => shutdown$.next());
2727
const ONE_MINUTE = 1000 * 60;
2828
const ONE_HOUR = ONE_MINUTE * 60;
29-
const SIX_HOURS = ONE_HOUR * 6;
30-
const restart$ = timer(SIX_HOURS).pipe(
29+
const restart$ = timer(ONE_HOUR).pipe(
3130
tap(() => console.log('Restarting Arby to reduce memory usage.'))
3231
);
3332
return merge(shutdown$.asObservable(), restart$).pipe(take(1));

0 commit comments

Comments
 (0)