Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

New in v6.1

* Bugfixes

- Correctly deallocate named counters if resource fails to allocate.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

New in v6.0

* Enhancements
Expand Down
2 changes: 1 addition & 1 deletion resalloc/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '6.0'
__version__ = '6.1'
3 changes: 2 additions & 1 deletion resallocserver/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ def job(self):

if resource.state == RState.ENDED:
session.delete(resource.id_in_pool_object)

for counter in resource.named_counters:
session.delete(counter)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do the same thing here

if resource.id_in_pool_object:
session.delete(resource.id_in_pool_object)
for counter in resource.named_counters:
session.delete(counter)

so I guess +1


# Notify manager that it is worth doing re-spin.
self.event.set()
Expand Down
Loading