Skip to content

Commit

Permalink
Aspect cache config (#7725)
Browse files Browse the repository at this point in the history
## Proposed Changes

-
-
-
  • Loading branch information
ranm8 authored Aug 2, 2023
1 parent 18ecf75 commit 8214414
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scopes/component/isolator/isolator.main.runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ export class IsolatorMain {
}

private registerMoveCapsuleOnProcessExit(datedCapsuleDir: string, targetCapsuleDir: string): void {
const cacheCapsules = process.env.CACHE_CAPSULES;
if (!cacheCapsules) return;
this.logger.info(`registering process.on(exit) to move capsules from ${datedCapsuleDir} to ${targetCapsuleDir}`);
process.on('exit', () => {
this.logger.info(`start moving capsules from ${datedCapsuleDir} to ${targetCapsuleDir}`);
Expand Down

0 comments on commit 8214414

Please sign in to comment.