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
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
Lisa Casino
slapos.core
Commits
43e3828c
Commit
43e3828c
authored
Jul 31, 2019
by
Julien Muchembled
Committed by
Rafael Monnerat
Aug 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapproxy: implement softwareInstanceBang
parent
b69b44f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
slapos/proxy/views.py
slapos/proxy/views.py
+15
-1
No files found.
slapos/proxy/views.py
View file @
43e3828c
...
...
@@ -311,7 +311,21 @@ def softwareInstanceError():
@
app
.
route
(
'/softwareInstanceBang'
,
methods
=
[
'POST'
])
def
softwareInstanceBang
():
return
'Ignored'
partition_list
=
[
getRootPartition
(
unicode2str
(
request
.
form
[
'computer_partition_id'
]))[
'reference'
]]
# Now that we have the root partition, browse recursively
# to update the timestamp of all partitions in the instance.
now
=
time
.
time
()
while
True
:
try
:
partition_id
=
partition_list
.
pop
()
except
IndexError
:
return
'OK'
execute_db
(
'partition'
,
"UPDATE %s SET timestamp=? WHERE reference=?"
,
(
now
,
partition_id
))
partition_list
+=
(
partition
[
'reference'
]
for
partition
in
execute_db
(
'partition'
,
"SELECT reference FROM %s WHERE requested_by=?"
,
(
partition_id
,)))
@
app
.
route
(
'/startedComputerPartition'
,
methods
=
[
'POST'
])
def
startedComputerPartition
():
...
...
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