Skip to content

Commit

Permalink
[argo] add terminationMessagePolicy (#50) (#1936)
Browse files Browse the repository at this point in the history
- add a terminationMessagePolicy to FallbackToLogsOnError
  • Loading branch information
iamsgarg-ob authored Jul 29, 2024
1 parent 790a0f0 commit cb15a4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions metaflow/plugins/argo/argo_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -2015,6 +2015,7 @@ def _container_templates(self):
kubernetes_sdk.V1Container(
name=self._sanitize(node.name),
command=cmds,
termination_message_policy="FallbackToLogsOnError",
ports=[kubernetes_sdk.V1ContainerPort(container_port=port)]
if port
else None,
Expand Down
1 change: 1 addition & 0 deletions metaflow/plugins/kubernetes/kubernetes_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def create_job_spec(self):
containers=[
client.V1Container(
command=self._kwargs["command"],
termination_message_policy="FallbackToLogsOnError",
ports=[]
if self._kwargs["port"] is None
else [
Expand Down
1 change: 1 addition & 0 deletions metaflow/plugins/kubernetes/kubernetes_jobsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ def dump(self):
containers=[
client.V1Container(
command=self._kwargs["command"],
termination_message_policy="FallbackToLogsOnError",
ports=[]
if self._kwargs["port"] is None
else [
Expand Down

0 comments on commit cb15a4e

Please sign in to comment.