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

Use transactional_session_maker in the celery tasks #3901

Merged
merged 2 commits into from Jan 14, 2020

Conversation

@abompard
Copy link
Member

abompard commented Jan 10, 2020

This ensures that DB sessions are removed when the task is done.

@abompard abompard requested a review from fedora-infra/bodhi as a code owner Jan 10, 2020
@abompard abompard force-pushed the abompard:tasks-transactions branch from 9f38ce7 to b7d8899 Jan 10, 2020
@abompard abompard force-pushed the abompard:tasks-transactions branch from b7d8899 to 73d9a93 Jan 13, 2020
@abompard
Copy link
Member Author

abompard commented Jan 14, 2020

I'm unable to reproduce locally the failures that CI sees. I'll keep working on this, sorry for the delay.

@abompard abompard force-pushed the abompard:tasks-transactions branch 3 times, most recently from 3ee66d9 to ff69ed3 Jan 14, 2020
abompard added 2 commits Jan 8, 2020
This ensures that DB sessions are removed when the task is done.

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
Also, we don't actually need to check that time.sleep is called.

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
@abompard abompard force-pushed the abompard:tasks-transactions branch from ff69ed3 to a8dca53 Jan 14, 2020
@cverna
cverna approved these changes Jan 14, 2020
@mergify mergify bot merged commit f1f68d9 into fedora-infra:develop Jan 14, 2020
36 checks passed
36 checks passed
DCO DCO
Details
Summary 2 rules match and 7 potential rules
Details
continuous-integration/jenkins/pr-head This commit looks good
Details
f29-build
Details
f29-diff-cover
Details
f29-docs
Details
f29-integration
Details
f29-integration-build
Details
f29-unit
Details
f30-build
Details
f30-diff-cover
Details
f30-docs
Details
f30-integration
Details
f30-integration-build
Details
f30-unit
Details
f31-build
Details
f31-diff-cover
Details
f31-docs
Details
f31-integration
Details
f31-integration-build
Details
f31-unit
Details
pip-build
Details
pip-diff-cover
Details
pip-docs
Details
pip-flake8
Details
pip-integration
Details
pip-integration-build
Details
pip-mypy
Details
pip-pydocstyle
Details
pip-unit
Details
rawhide-build
Details
rawhide-diff-cover
Details
rawhide-docs
Details
rawhide-integration
Details
rawhide-integration-build
Details
rawhide-unit
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.