Skip to content

feat: expose task group networks and task images in get_job#1

Open
cpesch wants to merge 1 commit into
Serviceware:mainfrom
cpesch:feat/get-job-task-groups
Open

feat: expose task group networks and task images in get_job#1
cpesch wants to merge 1 commit into
Serviceware:mainfrom
cpesch:feat/get-job-task-groups

Conversation

@cpesch
Copy link
Copy Markdown

@cpesch cpesch commented May 18, 2026

Summary

  • Adds task_groups array to the get_job response, exposing network port config (reserved and dynamic ports with label/value/to) and docker image per task
  • Enables MCP clients to answer questions like "which jobs run on port 80" or "which jobs use a given base image" in a single call per job
  • Extends fakeNomadClient in tests with task group data and adds TestGetJobIncludesTaskGroupsWithNetworksAndTasks

Test plan

  • go test ./... passes
  • Call get_job on a real job and verify task_groups[].networks[].reserved_ports and task_groups[].tasks[].image are populated

🤖 Generated with Claude Code

Adds task_groups to the get_job response, including per-group network
port config (reserved and dynamic ports with label/value/to) and per-task
driver and docker image. Enables MCP clients to answer questions like
"which jobs run on port 80" or "which jobs use a given base image"
without additional API calls.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant