aurweb/aurweb/models
Kevin Morris ec3152014b
fix: retry transactions who fail due to deadlocks
In my opinion, this kind of handling of transactions is pretty ugly.
The being said, we have issues with running into deadlocks on aur.al,
so this commit works against that immediate bug.

An ideal solution would be to deal with retrying transactions through
the `db.begin()` scope, so we wouldn't have to explicitly annotate
functions as "retry functions," which is what this commit does.

Closes #376

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-09-13 12:54:08 -07:00
..
__init__.py remove global aurweb.models flake8 F401 ignore 2021-11-17 06:00:12 -08:00
accepted_term.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
account_type.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
api_rate_limit.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
ban.py housekeep(fastapi): rework aurweb.db session API 2021-11-14 16:15:50 -08:00
declarative.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
dependency_type.py change(fastapi): refactor database ORM model definitions 2021-11-07 17:31:34 -08:00
group.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
license.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
official_provider.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
package.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
package_base.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
package_blacklist.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
package_comaintainer.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
package_comment.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
package_dependency.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
package_group.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
package_keyword.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
package_license.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
package_notification.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
package_relation.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
package_request.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
package_source.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
package_vote.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
relation_type.py change(fastapi): refactor database ORM model definitions 2021-11-07 17:31:34 -08:00
request_type.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
session.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
ssh_pub_key.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
term.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
tu_vote.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
tu_voteinfo.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
user.py fix: retry transactions who fail due to deadlocks 2022-09-13 12:54:08 -07:00