From ded74f18183811254f294bf1404262f918b344c3 Mon Sep 17 00:00:00 2001 From: Daniil Anfimov Date: Sun, 24 Nov 2024 21:48:26 +0200 Subject: [PATCH] Fix `sqlalchemy.exc.MissingGreenlet` error --- alws/crud/build_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alws/crud/build_node.py b/alws/crud/build_node.py index 133de5a52..e4d1580e5 100644 --- a/alws/crud/build_node.py +++ b/alws/crud/build_node.py @@ -833,7 +833,7 @@ def _get_srpm_name( db.add_all(rpm_entries) db.add(build_task) await db.flush() - await db.refresh(build_task) + await db.refresh(build_task, attribute_names=['build']) return build_task, processing_stats