mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 10:55:42 +03:00
Update comment about idempotency check
This commit is contained in:
@@ -1909,7 +1909,8 @@ func (j *Job) Dispatch(args *structs.JobDispatchRequest, reply *structs.JobDispa
|
||||
dispatchJob.Meta[k] = v
|
||||
}
|
||||
|
||||
// Check to see if an idempotency token was specified on the request
|
||||
// Ensure that we have only one dispatched version of this job running concurrently
|
||||
// by comparing the idempotency token against any non-terminal versions.
|
||||
if args.IdempotencyToken != "" {
|
||||
// Fetch all jobs that match the parameterized job ID prefix
|
||||
iter, err := snap.JobsByIDPrefix(ws, parameterizedJob.Namespace, parameterizedJob.ID)
|
||||
|
||||
Reference in New Issue
Block a user