Skip to content

Commit 431c2a1

Browse files
authored
Fix a bug where we are not removing TPU requests from the main container correctly (#43)
* Fix bug with TPU request * Fix formatting
1 parent af47a2a commit 431c2a1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,13 @@ 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(
172+
`There are ${tpuRequestingContainers.length} service container requesting for TPU's.`
173+
)
171174

172175
if (tpuRequestingContainers.length > 1) {
173176
throw new Error(

0 commit comments

Comments
 (0)