#3227·luigi

SQLAlchemy 2.0 not supported when task history enabled

Author: fran-penedoCreated Feb 17, 2023Updated Feb 6, 2026

As far as I can tell, the issue is in the _upgrade_schema function. In 2.0, string queries must be enclosed in a text object and for some reason the rows returned in conn.execute(sqlalchemy.text('PRAGMA table_info(task_parameters);')).fetchall() have no keys. I do not know if there are other changes in 2.0 that will break functionality.