freezingsaddles / freezing-sync

Freezing Saddles activity retrieval and processing
Apache License 2.0
1 stars 1 forks source link

Fix SQLAlchemy deprecation warnings, upgrade to 1.4 or 2.0 #44

Open obscurerichard opened 9 months ago

obscurerichard commented 9 months ago

From /home/centos/log/freezing-sync-weather-2024-01-13T17:46:52+0000

INFO     [sync-weather] Fetching weather for all rides
WARNING  [py.warnings] /usr/local/lib/python3.10/dist-packages/sqlalchemy/orm/attributes.py:577: SADeprecationWarning: AttributeExtension.set is deprecated.  The AttributeExtension class will be removed in a future release.  Please transition to the @event interface, using @event.listens_for(Class.attribute, 'set').
  ext._adapt_listener(attr, ext)

We likely need to deal with this to get up to SQLAlchemy 1.4 and then to 2.0. I also looked at the logs via CloudWatch logs insights - see the saved query freezing-sync - SADeprecationWarning which verifies that this is the only one showing up so far.