Skip to content

Commit f6c17e3

Browse files
committed
Fix for allocated concurrency including DEV
1 parent 0974c1c commit f6c17e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/webapp/app/presenters/v3/ManageConcurrencyPresenter.server.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,13 @@ export class ManageConcurrencyPresenter extends BasePresenter {
8383
: 0;
8484
if (!limit) continue;
8585

86-
if (environment.maximumConcurrencyLimit > limit) {
86+
// If it's not DEV and they've increased, track that
87+
// You can't spend money to increase DEV concurrency
88+
if (environment.type !== "DEVELOPMENT" && environment.maximumConcurrencyLimit > limit) {
8789
extraAllocatedConcurrency += environment.maximumConcurrencyLimit - limit;
8890
}
8991

92+
// We only want to show this project's environments
9093
if (environment.projectId === projectId) {
9194
if (environment.type === "DEVELOPMENT" && environment.orgMember?.userId !== userId) {
9295
continue;

0 commit comments

Comments
 (0)