-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Forcing a periodic job with a name similar to other periodic jobs fails to find the job #14116
Comments
Hi @jamesooo and thanks for raising this issue which I can also reproduce locally using the steps you provided. The bug is because the CLI performs a prefix search only; whereas we should attempt a direct lookup first before falling back to a prefix lookup. |
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. |
Nomad version
Nomad v1.1.6 (b83d623)
Operating system and Environment details
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
Issue
When a periodic job's name is prepended to other jobs
nomad job periodic force
is unable to find the jobReproduction steps
x
,x-testing
nomad job periodic force x
will now fail with the messagePrefix matched multiple periodic jobs
Expected Result
Execution of
x
should be forcedActual Result
Command fails to force placement of job and exits with message
Prefix matched multiple periodic jobs
Job file (if appropriate)
Nomad Server logs (if appropriate)
Nomad Client logs (if appropriate)
The text was updated successfully, but these errors were encountered: