You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am familiar with using SessionMaker with sqlalchemy for using rollback transactions in postgres, but it's a little unclear to me how to get this working with prefect sqlalchemy.
Expectation / Proposal
Prefect-sqlalchemy supports atomic transactions to allow rollback if any particular inserts fail. In particular, I want to insert images, calibrations, and photometry and have the entire thing rollback if any single one of those fail.
Traceback / Example
I would like to help contribute a pull request to resolve this!
(am totally willing to update or otherwise help with documentation to get this working.
This discussion was converted from issue #12999 on April 26, 2024 16:21.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am familiar with using SessionMaker with sqlalchemy for using rollback transactions in postgres, but it's a little unclear to me how to get this working with prefect sqlalchemy.
Expectation / Proposal
Prefect-sqlalchemy supports atomic transactions to allow rollback if any particular inserts fail. In particular, I want to insert images, calibrations, and photometry and have the entire thing rollback if any single one of those fail.
Traceback / Example
(am totally willing to update or otherwise help with documentation to get this working.
Beta Was this translation helpful? Give feedback.
All reactions