Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Carlos Ramos Carreño
erp5
Commits
d43af8f6
Commit
d43af8f6
authored
Jan 28, 2015
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
task distribution: make services much more reactive when server is back
parent
79ab9c59
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
erp5/util/taskdistribution/__init__.py
erp5/util/taskdistribution/__init__.py
+4
-1
No files found.
erp5/util/taskdistribution/__init__.py
View file @
d43af8f6
...
...
@@ -114,7 +114,10 @@ class RPCRetry(object):
self
.
_logger
.
warning
(
'Got exception, retrying: %s%r '
'in %is'
,
func_id
,
tuple
(
args
),
retry_time
,
exc_info
=
1
)
time
.
sleep
(
retry_time
)
retry_time
*=
1.5
# find a balance between not overloading a server and
# getting back working services quickly when rpc calls should
# rework (do not wait 2 days if server is back)
retry_time
=
min
(
retry_time
*
1.5
,
self
.
_retry_time
*
10
)
class
TestResultLineProxy
(
RPCRetry
):
"""
...
...
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