mirror of
https://github.com/kemko/nomad.git
synced 2026-01-09 20:05:42 +03:00
#2563 fixed pending state for allocations with terminal status
This commit is contained in:
@@ -495,6 +495,8 @@ func (r *AllocRunner) Run() {
|
||||
// clean up the allocation.
|
||||
if alloc.TerminalStatus() {
|
||||
r.logger.Printf("[DEBUG] client: alloc %q in terminal status, waiting for destroy", r.alloc.ID)
|
||||
// mark this allocation as completed.
|
||||
r.setStatus(structs.AllocClientStatusComplete, "cancelled running tasks for allocation in terminal state")
|
||||
r.handleDestroy()
|
||||
r.logger.Printf("[DEBUG] client: terminating runner for alloc '%s'", r.alloc.ID)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user