Skip to content

Commit

Permalink
Merge branch 'fix-the-cancel-tasks' into production
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardusrendy committed May 14, 2024
2 parents 48e5aa8 + 0ffe474 commit fb10652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alab_management/resource_manager/resource_requester.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def request_resources(
except concurrent.futures.TimeoutError as e:
# if the request is not fulfilled, cancel it to make sure the resources are released
request = self._request_collection.find_one_and_update({
"_id": result.inserted_id,
"_id": _id,
"status": {"$ne": RequestStatus.FULFILLED.name}
}, {
"$set": {
Expand Down

0 comments on commit fb10652

Please sign in to comment.