Skip to content

Commit

Permalink
Enable graceful agent termination
Browse files Browse the repository at this point in the history
Task cancellation was being wrongly ignored.
  • Loading branch information
albertofaria committed Dec 18, 2021
1 parent 3eb38e0 commit a578910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions image/pav/agent/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ async def handle_volume_provisioning(
api_client, handler_node_name, handlers
)
except CancelledError:
pass
break
except:
log(format_exc())
await sleep(AGENT_HANDLER_RETRY_DELAY.total_seconds())
Expand Down Expand Up @@ -405,7 +405,7 @@ async def handle_volume_staging(
api_client, handler_node_name, handlers
)
except CancelledError:
pass
break
except:
log(format_exc())
await sleep(AGENT_HANDLER_RETRY_DELAY.total_seconds())
Expand Down

0 comments on commit a578910

Please sign in to comment.