-
Notifications
You must be signed in to change notification settings - Fork 385
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
change run deletion (session/synchronize) #1374
Conversation
LOG.error("Failed to remove run: " + str(run_id)) | ||
LOG.error(ex) | ||
failed = True | ||
continue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to call continue
here? Couldn't we remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it it not needed there
* use separate sessions for each run deletion * wich the synchronize_session=False deletion can be speed up because we do not need the runs in the session anymore, just cleaning up everything
What is the reason to use separate sessions? I am not against it, just curious. |
@Xazax-hun I prefer to do the database modification in smaller chunks instead of building one big session with a lot of modifications. |
Having a separate transaction for each delete is definitely a good idea. But I wonder if reconnecting for each delete is good. But I am fine with that. |
because we do not need the runs in the session anymore,
just cleaning up everything