Skip to content

Commit 0f15de8

Browse files
author
Karl Ranna
committed
feat: restart arby every hour
1 parent fa2d3bb commit 0f15de8

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)