diff options
| author | DevilsAutumn <bhuvnesh875@gmail.com> | 2022-09-06 22:20:55 +0530 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-09-06 20:50:57 +0200 |
| commit | 3a084831e266bc9a4e3bc1ba89e44ffb7cf35a9c (patch) | |
| tree | 6cbb045414c7e5301b4ca92099ce38826af49208 | |
| parent | 982a970251bf2255a5fb587d3e953a2fcd563107 (diff) | |
Refs #33616 -- Updated BaseDatabaseWrapper.run_on_commit comment.
| -rw-r--r-- | django/db/backends/base/base.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/django/db/backends/base/base.py b/django/db/backends/base/base.py index 66aff8335c..3f07b4231a 100644 --- a/django/db/backends/base/base.py +++ b/django/db/backends/base/base.py @@ -107,8 +107,9 @@ class BaseDatabaseWrapper: self._thread_ident = _thread.get_ident() # A list of no-argument functions to run when the transaction commits. - # Each entry is an (sids, func) tuple, where sids is a set of the - # active savepoint IDs when this function was registered. + # Each entry is an (sids, func, robust) tuple, where sids is a set of + # the active savepoint IDs when this function was registered and robust + # specifies whether it's allowed for the function to fail. self.run_on_commit = [] # Should we run the on-commit hooks the next time set_autocommit(True) |
