Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
aab0b659
Commit
aab0b659
authored
Jan 03, 2013
by
Giorgos Korfiatis
Browse files
Commit before trying to lock, to avoid blocking
parent
c3ea25b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/models.py
View file @
aab0b659
...
...
@@ -1675,6 +1675,8 @@ def sync_projects():
def
trigger_sync
(
retries
=
3
,
retry_wait
=
1.0
):
transaction
.
commit
()
cursor
=
connection
.
cursor
()
locked
=
True
try
:
...
...
@@ -1693,7 +1695,6 @@ def trigger_sync(retries=3, retry_wait=1.0):
return
False
sleep
(
retry_wait
)
transaction
.
commit
()
sync_projects
()
return
True
...
...
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