From 5525a608b9ae1143f7dbd9a30fca3415b48649fd Mon Sep 17 00:00:00 2001 From: Adam Coldrick Date: Thu, 29 Oct 2015 17:21:50 +0000 Subject: [PATCH] Fix SubscriptionEvents not making it into the database On my test instance, SubscriptionEvents were being created successfully, but the changes were never flushed to the database while the autocommit parameter was set. Change-Id: I088904b74931179f22aed9595a374f9fed4a607c --- storyboard/plugin/event_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storyboard/plugin/event_worker.py b/storyboard/plugin/event_worker.py index b86fac2d..295daeb4 100644 --- a/storyboard/plugin/event_worker.py +++ b/storyboard/plugin/event_worker.py @@ -168,7 +168,7 @@ class WorkerTaskBase(PluginBase): A database session is created, and passed to the abstract method. """ - session = db_api.get_session(in_request=False, autocommit=False) + session = db_api.get_session(in_request=False) with session.begin(subtransactions=True): author = self.resolve_resource_by_name(session, 'user', author_id)