Skip to content

Commit

Permalink
[Sparkjob] Fix not setting executor instances (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedingber committed Mar 21, 2021
1 parent 5dfc2c4 commit a6e9016
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mlrun/runtimes/sparkjob.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ def _run(self, runobj: RunObject, execution: MLClientCtx):
update_in(job, "metadata", meta.to_dict())
update_in(job, "spec.driver.labels", pod_labels)
update_in(job, "spec.executor.labels", pod_labels)
update_in(job, "spec.executor.instances", self.spec.replicas or 1)
update_in(job, "spec.nodeSelector", self.spec.node_selector or {})

if (not self.spec.image) and self._default_image:
Expand Down

0 comments on commit a6e9016

Please sign in to comment.