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:
Preetha Appan 2019-01-08 14:30:56 -06:00
parent 41bfdd764b
commit 5fde0b0f5c
No known key found for this signature in database
GPG Key ID: 9F7C19990A50EAFC
1 changed files with 0 additions and 3 deletions

View File

@ -967,9 +967,6 @@ func (c *Client) restoreState() error {
if err := ar.Restore(); err != nil {
c.logger.Error("error restoring alloc", "error", err, "alloc_id", alloc.ID)
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
continue
}