Skip to content

Commit

Permalink
[kubernetes][jobsets] dont set replicas to 0 (Netflix#2118)
Browse files Browse the repository at this point in the history
  • Loading branch information
valayDave authored Oct 25, 2024
1 parent 0918267 commit a37555b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions metaflow/plugins/kubernetes/kubernetes_jobsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,8 @@ def kill(self):
name=self._name,
)

# Suspend the jobset and set the replica's to Zero.
#
# Suspend the jobset
obj["spec"]["suspend"] = True
for replicated_job in obj["spec"]["replicatedJobs"]:
replicated_job["replicas"] = 0

api_instance.replace_namespaced_custom_object(
group=self._group,
Expand Down

0 comments on commit a37555b

Please sign in to comment.