Persistent storage of objects #28

Open
opened 2026-03-26 08:22:52 +01:00 by vegardbm · 4 comments
Owner

This is the warning I get:

./worblehat/src/worblehat/cli/main.py:148: SAWarning: Object of type <BookcaseItem> not in session, add operation along 'BookcaseShelf.items' will not proceed (This warning originated from the Session 'autoflush' process, which was invoked automatically in response to a user-initiated operation. Consider using ``no_autoflush`` context manager if this warning happened while initializing objects.)
  default=self.sql_session.scalars(
This is the warning I get: ``` ./worblehat/src/worblehat/cli/main.py:148: SAWarning: Object of type <BookcaseItem> not in session, add operation along 'BookcaseShelf.items' will not proceed (This warning originated from the Session 'autoflush' process, which was invoked automatically in response to a user-initiated operation. Consider using ``no_autoflush`` context manager if this warning happened while initializing objects.) default=self.sql_session.scalars( ```
Owner

I need this.

I need this.
vegardbm reopened this issue 2026-06-06 02:54:28 +02:00
Author
Owner

If I rebuild, it does not persist.

If I rebuild, it does not persist.
oysteikt added the bug label 2026-06-06 08:26:45 +02:00
Owner

If I rebuild, it does not persist

Could you expand? Rebuild in production, or rebuild the dev VM? Does it persist if you merely restart the systemd service, or is the problem that it never actually gets stored to the database and just gets held in python ram throughout the lifetime of the service?

> If I rebuild, it does not persist Could you expand? Rebuild in production, or rebuild the dev VM? Does it persist if you merely restart the systemd service, or is the problem that it never actually gets stored to the database and just gets held in python ram throughout the lifetime of the service?
Author
Owner

I'll take a look at it and try to find minimal reproduction steps.

I'll take a look at it and try to find minimal reproduction steps.
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Projects/worblehat#28