Skip to content

Commit cf23e08

Browse files
performance: remove commit from add_event since it is done at the end of the for loop
1 parent 016d85f commit cf23e08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cads_broker/dispatcher.py

+1
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,7 @@ def cache_requests_qos_properties(self, requests, session: sa.orm.Session) -> No
757757
request_uid=request.request_uid,
758758
message=exception.args[0],
759759
session=session,
760+
commit=False,
760761
)
761762
request = db.get_request(request.request_uid, session=session)
762763
request.status = "failed"

0 commit comments

Comments
 (0)