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
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
Hide 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):
config_SR_folder(config)
if os.path.exists(os.path.join(config['
runner_workdir
'],
'
softwareLink
', software_name, '
.
completed
')):
if config['
autorun
'] in TRUE_VALUES:
runSlapgridUntilSuccess(config, '
instance
')
return "1"
else:
if isSoftwareRunning(config):
...
...
@@ -782,6 +784,10 @@ def isSoftwareReleaseReady(config):
elif config['
auto_deploy
'] in TRUE_VALUES:
configNewSR(config, path)
runSoftwareWithLock(config)
config_SR_folder(config)
time.sleep(15)
if config['
autorun
'] in TRUE_VALUES:
runSlapgridUntilSuccess(config, '
instance
')
return "2"
else:
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