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

Bug: MySQL is not working for custom delegation #598

Open
1 task done
kairoaraujo opened this issue Sep 13, 2024 · 0 comments
Open
1 task done

Bug: MySQL is not working for custom delegation #598

kairoaraujo opened this issue Sep 13, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@kairoaraujo
Copy link
Member

What happened?

As required by MySQL, we need to review when we do commit() and make sure that the commits go in all async tasks.

See here a case:

# If using MySQL/MariaDB, we need to commit the transaction in the
# subtask to see the changes in the main task.
# https://stackoverflow.com/questions/58212462/db-changes-made-in-a-celery-task-not-visible-in-the-main-thread # noqa
if "mysql" in self._db.bind.url.drivername:
self._db.commit()

The tests are failing

https://github.com/repository-service-tuf/repository-service-tuf-worker/actions/runs/10851053429/job/30113908168

What steps did you take?

Run RSTUF Worker using MySQL

What behavior did you expect?

No response

Relevant log output

https://github.com/repository-service-tuf/repository-service-tuf-worker/actions/runs/10851053429/job/30113908168

Code of Conduct

  • I agree to follow this project's Code of Conduct
@kairoaraujo kairoaraujo added bug Something isn't working needs-triage Further discussion is required and removed needs-triage Further discussion is required labels Sep 13, 2024
@kairoaraujo kairoaraujo modified the milestones: v0.10.0b1, v1.0.0 Sep 13, 2024
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

No branches or pull requests

1 participant