Skip to content

Commit

Permalink
fix multi pods
Browse files Browse the repository at this point in the history
  • Loading branch information
goldenxinxing committed Jul 14, 2023
1 parent ed1d303 commit bd1f1d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ public void build(CreateBuildRecordRequest request) {
Map<String, String> nodeSelector = pool != null ? pool.getNodeSelector() : Map.of();
var toleration = pool != null ? pool.getTolerations() : null;
k8sJobTemplate.renderJob(job, String.format("%s-%d", entity.getDatasetName(), entity.getId()),
"Never", 1, ret, nodeSelector, toleration, null);
"Never", 0, ret, nodeSelector, toleration, null);

log.debug("deploying dataset build job to k8s :{}", JSONUtil.toJsonStr(job));
try {
Expand Down

0 comments on commit bd1f1d4

Please sign in to comment.