mkocka / fm-orchestrator

Forked from fm-orchestrator 7 years ago
Clone

e35f7af Use a fresh db session with every backend msg.

Authored and Committed by ralph 7 years ago
    Use a fresh db session with every backend msg.
    
    This fixes #93.  See that issue for a description of the problem.
    
    This change will create a new session for every event handled by the
    backend and will force a commit and close the session at the end of each
    message.
    
    For bonus points, we should employ the ZopeTransactionManager extension
    in the future, but I'm not sure how it will play with the
    flask_sqlalchemy extension.  Will check on that later.
    
        
file modified
+25 -1
file modified
+12 -10