Skip to content

Commit 39822c1

Browse files
committed
fix: we should also ensure that the mlessage is not being removed when getting instance allocations
1 parent b669908 commit 39822c1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/aleph/sdk/client/services/instance.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ async def get_instances_allocations(self, messages_list, only_processed=True):
9090
for msg in messages_list:
9191
if only_processed:
9292
status = await self._client.get_message_status(msg.item_hash)
93-
if status != MessageStatus.PROCESSED:
93+
if (
94+
status != MessageStatus.PROCESSED
95+
and status != MessageStatus.REMOVING
96+
):
9497
continue
9598
tasks.append(self.get_instance_allocation_info(msg, crn_list))
9699

0 commit comments

Comments
 (0)