porton
porton

Reputation: 5827

How to detect deadlocks in Django?

How to detect a transaction deadlock in Django?

Which exception it raises?

It seems for me that it is IntegrityError but this exception is raised also in other situations (not deadlocks). How to check if it is a deadlock?

Upvotes: 0

Views: 836

Answers (2)

Random Name
Random Name

Reputation: 387

You can read more in django docs https://docs.djangoproject.com/el/1.10/ref/exceptions/#database-exceptions

Upvotes: 0

doniyor
doniyor

Reputation: 37934

it raises OperationalError if deadlock

Upvotes: 2

Related Questions