hashicorp / hashicorp/nomad

Run Action endpoint: accept group + task instead of allocID

Open
#19,386 0 comments 0 reactions 0 assignees View on GitHub
hcc/bff theme/actions type/enhancement
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

The `nomad job action` endpoint accepts either:
- job name, task name, group name, and action name
- job name, allocID, and action name

but the `/job/action` endpoint only accepts the latter.

In the event that multiple allocations are available to run an action on, the `nomad job action` endpoint currently selects one of the running ones. The API endpoint should do the same.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing the `nomad job action` implementation with the `/job/action` API endpoint, focusing on how each resolves a target allocation. Confirm the endpoint's request handling and selection behavior, then verify that group and task inputs select a running allocation when multiple allocations are available.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.