This commit is contained in:
Benedikt Bartscher 2024-12-06 02:00:17 +01:00
parent e6b356fb67
commit f9e48e0609
No known key found for this signature in database

View File

@ -1332,6 +1332,8 @@ class BaseState(Base, ABC, extra=pydantic.Extra.allow):
return
# For now, handle router_data updates as a special case if using redis.
# TODO: it would be better to check for the state manager instead of redis url
# however get_state_manager causes a circular import
if name == constants.ROUTER_DATA and get_config().redis_url:
self.dirty_vars.add(name)
self._mark_dirty()