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
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.toolbox
Commits
3183f4d3
Commit
3183f4d3
authored
Jan 27, 2014
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runner: can now use parameter autorun
parent
b33bd1f2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
slapos/runner/utils.py
slapos/runner/utils.py
+6
-0
No files found.
slapos/runner/utils.py
View file @
3183f4d3
...
@@ -775,6 +775,8 @@ def isSoftwareReleaseReady(config):
...
@@ -775,6 +775,8 @@ def isSoftwareReleaseReady(config):
config_SR_folder(config)
config_SR_folder(config)
if os.path.exists(os.path.join(config['
runner_workdir
'],
if os.path.exists(os.path.join(config['
runner_workdir
'],
'
softwareLink
', software_name, '
.
completed
')):
'
softwareLink
', software_name, '
.
completed
')):
if config['
autorun
'] in TRUE_VALUES:
runSlapgridUntilSuccess(config, '
instance
')
return "1"
return "1"
else:
else:
if isSoftwareRunning(config):
if isSoftwareRunning(config):
...
@@ -782,6 +784,10 @@ def isSoftwareReleaseReady(config):
...
@@ -782,6 +784,10 @@ def isSoftwareReleaseReady(config):
elif config['
auto_deploy
'] in TRUE_VALUES:
elif config['
auto_deploy
'] in TRUE_VALUES:
configNewSR(config, path)
configNewSR(config, path)
runSoftwareWithLock(config)
runSoftwareWithLock(config)
config_SR_folder(config)
time.sleep(15)
if config['
autorun
'] in TRUE_VALUES:
runSlapgridUntilSuccess(config, '
instance
')
return "2"
return "2"
else:
else:
return "0"
return "0"
...
...
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