Commit 53203514 authored by Jérome Perrin's avatar Jérome Perrin

Alarm: restore workaround for getLastActiveProcess

92aa42c378783603e90f7ff27208034bdfe5a5e5 reintroduced the random failure. This
restores the same workaround using the 3 item sort syntax
parent a079478f
......@@ -347,7 +347,8 @@ Alarm Tool Node: %s
limit = self.isActive() and 2 or 1
active_process_list = self.getPortalObject().portal_catalog(
portal_type='Active Process', limit=limit,
sort_on=(('creation_date', 'DESC'),),
sort_on=(('creation_date', 'DESC'),
('id', 'DESC', 'UNSIGNED'),),
causality_uid=self.getUid())
if len(active_process_list) < limit:
process = None
......
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