Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Could not save multiple execution records for the same execution #226

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hoh
Copy link
Member

@hoh hoh commented Sep 13, 2022

No description provided.

@hoh hoh added the bug Something isn't working label Sep 13, 2022
@@ -34,6 +34,8 @@ class ExecutionRecord(Base):
__tablename__ = "records"

uuid = Column(String, primary_key=True)

execution_uuid = Column(String, nullable=False)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You recreate the DB on startup, right? Otherwise adding a column will crash.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, the database would require a migration.

@hoh
Copy link
Member Author

hoh commented Oct 5, 2022

Related to #235

@MHHukiewitz
Copy link
Member

Ah right, this is the example I was looking for in #235. Why is it needed to have multiple ExecutionRecords for a single execution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants