Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
Commits
d19cb413
Commit
d19cb413
authored
Sep 12, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more fixes based on review comments
parent
b4ad9d5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
doc/guide/transactions-and-threading.rst
doc/guide/transactions-and-threading.rst
+5
-5
No files found.
doc/guide/transactions-and-threading.rst
View file @
d19cb413
...
...
@@ -166,10 +166,10 @@ block as a transaction::
>>> exec(src)
This opens a connection, assignes it it
'
s
own
context
manager
,
and
This opens a connection, assignes it its own context manager, and
executes the nested code in a transaction. We used ``as conn2`` to
get
the
connection
.
The
transaction
boundaries
are
defined
``
with
``
statement
.
get the connection. The transaction boundaries are defined
by the
``with``
statement.
Getting a connection'
s
transaction
manager
------------------------------------------
...
...
@@ -272,7 +272,7 @@ something like this::
max_attempts = 3
attempts = 0
while
1
:
while
True
:
try:
with transaction.manager:
... code that updates a database
...
...
@@ -311,7 +311,7 @@ transient errors.
For applications like queue workers or `cron jobs
<https://en.wikipedia.org/wiki/Cron>`_, conflicts can sometimes be
allowed to fail, letting other queue workers or subsequent cron-job
runs
retry
the
work
,
runs retry the work
.
Conflict resolution
~~~~~~~~~~~~~~~~~~~
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment