Skip to content

Commit

Permalink
Label preemptable pods
Browse files Browse the repository at this point in the history
  • Loading branch information
rhelmot committed Jul 13, 2024
1 parent 4ff0f9b commit dc8577f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pydatatask/executor/pod_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ async def launch(self, task: str, job: str, replica: int, manifest):
},
}
)
if replica != 0:
manifest["metadata"]["labels"]["preemptable"] = "true"

await self.v1.create_namespaced_pod(self.namespace, manifest)

Expand Down

0 comments on commit dc8577f

Please sign in to comment.