Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different Job ID and Name #10946

Closed
Regenhardt opened this issue Jul 27, 2021 · 2 comments
Closed

Different Job ID and Name #10946

Regenhardt opened this issue Jul 27, 2021 · 2 comments

Comments

@Regenhardt
Copy link

Proposal

Allow Job name to be different from ID.

Use-cases

This makes the job list look way more friendly.

Attempted Solutions

A year ago I started my journey with nomad. Pushed a job with ID "comp-imageconverter" and name "ImageConverter". So it has an id I can see in the job-url "/ui/jobs/comp-imageconverter", but in the big job list on the nomad homepage I can see the name "ImageConverter".

Now I tried to make another job like that, and I get the "Job ID not matching" error, probably because of this part:

if jobName != "" && *args.Job.ID != jobName {
		return nil, CodedError(400, "Job ID does not match")
	}

which is strange, because ID and name feel like things that should be able to be set independently.

@tgross
Copy link
Member

tgross commented Aug 22, 2022

Sorry about the delay on replying to this one @Regenhardt. Turns out this is mostly a duplicate of a long-open issue #2248 that goes through some of the challenges. At this point it's going to be very challenging to do this kind of thing without breaking backwards compatibility in the API, so I'm going to be honest and say this isn't likely to be done.

Going to close this issue as a dupe, but thanks for opening the issue!

@tgross tgross closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2022
@tgross tgross added stage/duplicate theme/api HTTP API and SDK issues labels Aug 22, 2022
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

No branches or pull requests

2 participants