Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
Kirill Smelkov
slapos.toolbox
Commits
87201274
Commit
87201274
authored
Apr 29, 2014
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runner: isSRReady do not do anything if no project or no auto deploy/run
parent
ac5da869
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
slapos/runner/utils.py
slapos/runner/utils.py
+6
-4
No files found.
slapos/runner/utils.py
View file @
87201274
...
...
@@ -795,8 +795,10 @@ def isSoftwareReleaseReady(config):
"""Return 1 if the Software Release has
correctly been deployed, 0 if not,
and 2 if it is currently deploying"""
auto_deploy = config['
auto_deploy
'] in TRUE_VALUES
auto_run = config['
autorun
'] in TRUE_VALUES
project = os.path.join(config['
etc_dir
'], '
.
project
')
if not
os.path.exists(project
):
if not
( os.path.exists(project) or auto_run or auto_deploy
):
return "0"
path = open(project, 'r').readline().strip()
software_name = path
...
...
@@ -807,17 +809,17 @@ def isSoftwareReleaseReady(config):
config_SR_folder(config)
if os.path.exists(os.path.join(config['
runner_workdir
'],
'
softwareLink
', software_name, '
.
completed
')):
if
config['
autorun
'] in TRUE_VALUES
:
if
auto_run
:
runSlapgridUntilSuccess(config, '
instance
')
return "1"
else:
if isSoftwareRunning(config):
return "2"
elif
config['
auto_deploy
'] in TRUE_VALUES
:
elif
auto_deploy
:
runSoftwareWithLock(config)
config_SR_folder(config)
time.sleep(15)
if
config['
autorun
'] in TRUE_VALUES
:
if
auto_run
:
runSlapgridUntilSuccess(config, '
instance
')
return "2"
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