Commit 0a67fa64 authored by Vincent Pelletier's avatar Vincent Pelletier

Mark all messages as failed so that they don"t get deleted in finalizeMessageExecution.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19095 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f9f90da0
......@@ -446,6 +446,8 @@ class SQLDict(RAMDict, SQLBase):
except:
LOG('SQLDict', PANIC, 'Failed to abort executed messages which also failed to commit. Some objects may be modified accidentally.')
raise
for x in message_uid_priority_list:
x[1].is_executed = 0
failed_message_uid_list = [x[0] for x in message_uid_priority_list]
try:
makeMessageListAvailable(failed_message_uid_list)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment