• Vincent Pelletier's avatar
    Avoid scanning the whole list of active processes related to an alarm when we... · e681ea49
    Vincent Pelletier authored
    Avoid scanning the whole list of active processes related to an alarm when we just want the most recent one.
    When alarm is currently runing, skip latest active result to display the previous one: this way, we display the result of a complete run. This is more consistent for alarms checking big quantities of documents in multiple activities and only displaying an error when one is actualy encountered (an error at the end of a processing batch would be hidden when the next batch starts processing).
    
    
    git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22456 20353a03-c40f-0410-a6d1-a30d3c3de9de
    e681ea49
Alarm.py 20.8 KB