Unverified Commit 80d92481 authored by Preetha Appan's avatar Preetha Appan
Browse files

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
Showing with 0 additions and 3 deletions
+0 -3
...@@ -967,9 +967,6 @@ func (c *Client) restoreState() error { ...@@ -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
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment