mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-14 03:59:45 +08:00
SQLAlchemy objects can't be used from multiple threads - so when starting threads for builds, pass the ComponentBuild id rather than the object. (Note that despite the comment that the threads were sharing a session, they weren't - what was passed to the thread was a scoped_session that acts as a separate thread-local session per-thread.) BUILD_COMPONENT_DB_SESSION_LOCK - a threading.Lock() object that was used in a few places - but not nearly enough places to effectively lock usage of a shared session - is removed.