Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
9716bcd
1
Parent(s):
aab2279
cap at 32
Browse files
ui/src/app/api/hf-jobs/route.ts
CHANGED
|
@@ -1070,7 +1070,7 @@ async function checkHFJobsCapacity(token: string): Promise<any> {
|
|
| 1070 |
}
|
| 1071 |
}
|
| 1072 |
|
| 1073 |
-
const atCapacity = runningCount
|
| 1074 |
|
| 1075 |
console.log(`Found ${runningCount} RUNNING jobs. At capacity: ${atCapacity}`);
|
| 1076 |
|
|
|
|
| 1070 |
}
|
| 1071 |
}
|
| 1072 |
|
| 1073 |
+
const atCapacity = runningCount >= 32;
|
| 1074 |
|
| 1075 |
console.log(`Found ${runningCount} RUNNING jobs. At capacity: ${atCapacity}`);
|
| 1076 |
|