Revert code that made an alloc update when restore fails
Restore currently shuts down the client so the alloc update cant always make it to the server
This commit is contained in:
parent
41bfdd764b
commit
5fde0b0f5c
|
@ -967,9 +967,6 @@ func (c *Client) restoreState() error {
|
||||||
if err := ar.Restore(); err != nil {
|
if err := ar.Restore(); err != nil {
|
||||||
c.logger.Error("error restoring alloc", "error", err, "alloc_id", alloc.ID)
|
c.logger.Error("error restoring alloc", "error", err, "alloc_id", alloc.ID)
|
||||||
mErr.Errors = append(mErr.Errors, err)
|
mErr.Errors = append(mErr.Errors, err)
|
||||||
// Mark alloc as failed so server can handle this
|
|
||||||
failed := makeFailedAlloc(alloc, err)
|
|
||||||
c.allocUpdates <- failed
|
|
||||||
//TODO Cleanup allocrunner
|
//TODO Cleanup allocrunner
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue