Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
24451a06
Commit
24451a06
authored
Jun 23, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unused exception object
parent
45322c70
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
slapos/grid/svcbackend.py
slapos/grid/svcbackend.py
+3
-3
No files found.
slapos/grid/svcbackend.py
View file @
24451a06
...
@@ -28,9 +28,9 @@
...
@@ -28,9 +28,9 @@
#
#
##############################################################################
##############################################################################
import
time
import
os
import
os
import
sys
import
sys
import
time
import
xmlrpclib
import
xmlrpclib
import
socket
as
socketlib
import
socket
as
socketlib
import
subprocess
import
subprocess
...
@@ -59,7 +59,7 @@ def launchSupervisord(socket, configuration_file, logger):
...
@@ -59,7 +59,7 @@ def launchSupervisord(socket, configuration_file, logger):
logger
.
info
(
'Supervisor in shutdown procedure, will check again later.'
)
logger
.
info
(
'Supervisor in shutdown procedure, will check again later.'
)
trynum
+=
1
trynum
+=
1
time
.
sleep
(
2
*
trynum
)
time
.
sleep
(
2
*
trynum
)
except
Exception
as
e
:
except
Exception
:
# In case if there is problem with connection, assume that supervisord
# In case if there is problem with connection, assume that supervisord
# is not running and try to run it
# is not running and try to run it
break
break
...
@@ -109,7 +109,7 @@ def launchSupervisord(socket, configuration_file, logger):
...
@@ -109,7 +109,7 @@ def launchSupervisord(socket, configuration_file, logger):
logger
.
warning
(
'Wrong status name %(statename)r and code '
logger
.
warning
(
'Wrong status name %(statename)r and code '
'%(statecode)r, trying again'
%
status
)
'%(statecode)r, trying again'
%
status
)
trynum
+=
1
trynum
+=
1
except
Exception
as
e
:
except
Exception
:
current_timeout
=
5
*
trynum
current_timeout
=
5
*
trynum
trynum
+=
1
trynum
+=
1
else
:
else
:
...
...
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