Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/server/ee/src/prebuilds/prebuild-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export class PrebuildManager {
}
const now = Date.now();
const lastUse = new Date(usage.lastWorkspaceStart).getTime();
const inactiveProjectTime = 1000 * 60 * 60 * 24 * 7 * 10; // 10 weeks
const inactiveProjectTime = 1000 * 60 * 60 * 24 * 7 * 1; // 1 week
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: * 1 is unnecessary.

Suggested change
const inactiveProjectTime = 1000 * 60 * 60 * 24 * 7 * 1; // 1 week
const inactiveProjectTime = 1000 * 60 * 60 * 24 * 7; // 1 week

return now - lastUse > inactiveProjectTime;
}
}