Skip to content

Commit

Permalink
feat(launch): add agent.startTimeout value for `WANDB_LAUNCH_START_…
Browse files Browse the repository at this point in the history
…TIMEOUT` (#38)
  • Loading branch information
bcsherma authored Nov 1, 2023
1 parent 0e40471 commit 552b7e8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/launch-agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: launch-agent
icon: https://em-content.zobj.net/thumbs/240/apple/354/rocket_1f680.png
description: A Helm chart for running the W&B Launch Agent in Kubernetes
type: application
version: 0.11.1
version: 0.11.2
maintainers:
- name: wandb
email: [email protected]
Expand Down
3 changes: 2 additions & 1 deletion charts/launch-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ The table below describes all the available variables in the chart:
| `agent.useExternalWandbSecret` | bool | **false** | "" | Used to indicate you want to provide the api key secret external to this chart. |
| `agent.image` | string | No | `wandb/launch-agent-dev:latest` | Container image for the agent. |
| `agent.imagePullPolicy` | string | No | `Always` | Pull policy for the agent container image. |
| `agent.resources` | object | No | Limit to 1 CPU, 1Gi RAM | Pod spec resources block for the agent. |
| `agent.resources` | object | No | Limit to 1 CPU, 1Gi RAM | Pod spec resources block for the agent. true |
| `agent.startTimeout` | int | No | `1800` | Timeout in seconds that the agent will wait for a job to start before timing out. |
| `namespace` | string | No | `wandb` | The namespace to deploy the agent into. |
| `additionalTargetNamespaces` | list(string) | No | [`wandb`,`default`] | A list of namespaces the agent can run jobs in. |
| `baseUrl` | string | No | `https://api.wandb.ai` | URL of your W&B server api. |
Expand Down
2 changes: 2 additions & 0 deletions charts/launch-agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ spec:
key: wandb-base-url
- name: CM_CHECKSUM
value: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
- name: WANDB_LAUNCH_START_TIMEOUT
value: "{{ .Values.agent.startTimeout }}"
volumeMounts:
- name: wandb-launch-config
mountPath: /home/launch_agent/.config/wandb
Expand Down
2 changes: 2 additions & 0 deletions charts/launch-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ agent:
limits:
cpu: 1000m
memory: 1Gi
# Job start timeout (seconds)
startTimeout: 1800

# Namespace to deploy launch agent into
namespace: wandb
Expand Down

0 comments on commit 552b7e8

Please sign in to comment.