You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,8 @@ For critical pieces of code that cannot overlap with one another, it is often ne
9
9
10
10
If your application does not need a high performance mutex lock, Django DB Mutex does the trick. The common use case for Django DB Mutex is to provide the abilty to lock long-running periodic tasks that should not overlap with one another. Celery is the common backend for Django when scheduling periodic tasks.
11
11
12
-
## How to Use Djagno DB Mutex
13
-
The Djagno DB Mutex app provides a context manager and function decorator for locking a critical section of code. The context manager is used in the following way:
12
+
## How to Use Django DB Mutex
13
+
The Django DB Mutex app provides a context manager and function decorator for locking a critical section of code. The context manager is used in the following way:
14
14
15
15
from db_mutex import db_mutex, DBMutexError, DBMutexTimeoutError
16
16
@@ -67,7 +67,7 @@ Django DB Mutex can be used with celery's tasks in the following manner.
67
67
except DBMutexError:
68
68
# Ignore this task since the same one is already running
69
69
pass
70
-
except DBMutextTimeoutError:
70
+
except DBMutexTimeoutError:
71
71
# A task ran for a long time and another one may have overlapped with it. Report the error
0 commit comments