Skip to content

Commit 85ea0f2

Browse files
committed
Fix bug with TPU request
1 parent f657bf1 commit 85ea0f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/k8s/src/hooks/prepare-job.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,11 @@ export function processServiceContainers(
164164
)
165165
})
166166

167-
const tpuRequestingContainers = services.filter(
167+
const tpuRequestingContainers = serviceContainers.filter(
168168
service =>
169169
service.resources?.limits && service.resources.limits['google.com/tpu']
170170
)
171+
core.debug(`There are ${tpuRequestingContainers.length} service container requesting for TPU's.`)
171172

172173
if (tpuRequestingContainers.length > 1) {
173174
throw new Error(

0 commit comments

Comments
 (0)