Skip to content

Adding customizable idle-on-complete for self hosted worker #35

Open
ianhodge wants to merge 2 commits into03-17-ian_adding_concurrency_limitfrom
03-18-ian_adding_customizable_idle_on_complete
Open

Adding customizable idle-on-complete for self hosted worker #35
ianhodge wants to merge 2 commits into03-17-ian_adding_concurrency_limitfrom
03-18-ian_adding_customizable_idle_on_complete

Conversation

@ianhodge
Copy link
Member

@ianhodge ianhodge commented Mar 18, 2026

I noticed while bashing on the concurrency stuff that it would be nice to customize how longer worker stay idle after they complete. The default 45 mins might not be ideal for users running oz on their own compute

Copy link
Member Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ianhodge ianhodge changed the title ian/adding_customizable_idle_on_complete Adding customizable idle-on-complete for self hosted worker Mar 18, 2026
@ianhodge ianhodge requested a review from bnavetta March 18, 2026 20:24
@ianhodge ianhodge marked this pull request as ready for review March 18, 2026 20:24
Volumes []string `help:"Volume mounts for task containers (format: HOST_PATH:CONTAINER_PATH or HOST_PATH:CONTAINER_PATH:MODE)" short:"v"`
Env []string `help:"Environment variables for task containers (format: KEY=VALUE or KEY to pass through from host)" short:"e"`
MaxConcurrentTasks int `help:"Maximum number of tasks to run concurrently (0 for unlimited)" default:"0"`
IdleOnComplete string `help:"How long to keep the oz agent alive after a task completes, for follow-ups (humantime format, e.g. 45m, 10m, 0s). Defaults to 45m when not set."`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feels like an implementation detail

Suggested change
IdleOnComplete string `help:"How long to keep the oz agent alive after a task completes, for follow-ups (humantime format, e.g. 45m, 10m, 0s). Defaults to 45m when not set."`
IdleOnComplete string `help:"How long to keep the oz agent alive after a task completes, for follow-ups (e.g. 45m, 10m, 0s). Defaults to 45m when not set."`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants