We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents afac886 + 0f15de8 commit 6a8b5b8Copy full SHA for 6a8b5b8
src/utils.ts
@@ -26,8 +26,7 @@ export const getStartShutdown$ = (): Observable<unknown> => {
26
process.on('SIGTERM', () => shutdown$.next());
27
const ONE_MINUTE = 1000 * 60;
28
const ONE_HOUR = ONE_MINUTE * 60;
29
- const SIX_HOURS = ONE_HOUR * 6;
30
- const restart$ = timer(SIX_HOURS).pipe(
+ const restart$ = timer(ONE_HOUR).pipe(
31
tap(() => console.log('Restarting Arby to reduce memory usage.'))
32
);
33
return merge(shutdown$.asObservable(), restart$).pipe(take(1));
0 commit comments