Jan-10-2020, 06:46 PM
SQL Alchemy team found problem. BASE._dec_class_registry losing attributes due to multithreading. As a solution for that I create global DYNAMIC_CLASS and store all _ = type(class_name, (BASE,), params) and call it on run. BASE._dec_class_registry don't losing attributes then