Skip to content

Commit

Permalink
Do not delete reservation on action error or cancellation
Browse files Browse the repository at this point in the history
This patch makes sure that reservations only get deleted when a
Transfer action is being deleted.
  • Loading branch information
Dany9966 committed Oct 3, 2024
1 parent d89b740 commit 4d95f16
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions coriolis/conductor/rpc/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -3205,11 +3205,6 @@ def set_task_error(self, ctxt, task_id, exception_details):
else:
self._cancel_tasks_execution(ctxt, execution)

# NOTE: if this was a migration, make sure to delete
# its associated reservation.
if execution.type == constants.EXECUTION_TYPE_MIGRATION:
self._check_delete_reservation_for_transfer(action)

@task_synchronized
def add_task_event(self, ctxt, task_id, level, message):
LOG.info("Adding event for task '%s': %s", task_id, message)
Expand Down

0 comments on commit 4d95f16

Please sign in to comment.