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
2c2f83cb
Commit
2c2f83cb
authored
Nov 30, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_upgrader: reduce concurrency on instance tree creation
parent
b2f5290c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
4 deletions
+9
-4
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/Base_triggerFullSiteMigrationToVirtualMasterStep3.py
...ader/Base_triggerFullSiteMigrationToVirtualMasterStep3.py
+1
-0
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/InstanceTree_fixupSiteMigrationToVirtualMaster.py
...pgrader/InstanceTree_fixupSiteMigrationToVirtualMaster.py
+5
-1
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/InstanceTree_fixupSiteMigrationToVirtualMaster.xml
...grader/InstanceTree_fixupSiteMigrationToVirtualMaster.xml
+1
-1
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/Project_checkSiteMigrationCreateRemoteNode.py
...os_upgrader/Project_checkSiteMigrationCreateRemoteNode.py
+1
-1
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/Project_checkSiteMigrationCreateRemoteNode.xml
...s_upgrader/Project_checkSiteMigrationCreateRemoteNode.xml
+1
-1
No files found.
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/Base_triggerFullSiteMigrationToVirtualMasterStep3.py
View file @
2c2f83cb
...
@@ -34,6 +34,7 @@ portal.portal_catalog.searchAndActivate(
...
@@ -34,6 +34,7 @@ portal.portal_catalog.searchAndActivate(
############################################
############################################
portal
.
portal_catalog
.
searchAndActivate
(
portal
.
portal_catalog
.
searchAndActivate
(
method_id
=
'InstanceTree_fixupSiteMigrationToVirtualMaster'
,
method_id
=
'InstanceTree_fixupSiteMigrationToVirtualMaster'
,
method_kw
=
{
'tag'
:
tag
},
activate_kw
=
{
'tag'
:
tag
,
'priority'
:
1
},
activate_kw
=
{
'tag'
:
tag
,
'priority'
:
1
},
portal_type
=
"Instance Tree"
,
portal_type
=
"Instance Tree"
,
...
...
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/InstanceTree_fixupSiteMigrationToVirtualMaster.py
View file @
2c2f83cb
...
@@ -25,4 +25,8 @@ for sql_result in portal.portal_catalog(specialise__uid=instance_tree.getUid()):
...
@@ -25,4 +25,8 @@ for sql_result in portal.portal_catalog(specialise__uid=instance_tree.getUid()):
if
not
is_consistent
:
if
not
is_consistent
:
for
instance_virtual_master_relative_url
in
remote_virtual_master_dict
:
for
instance_virtual_master_relative_url
in
remote_virtual_master_dict
:
instance_tree_virtual_master
.
Project_checkSiteMigrationCreateRemoteNode
(
instance_virtual_master_relative_url
,
remote_virtual_master_dict
[
instance_virtual_master_relative_url
])
instance_tree_virtual_master
.
Project_checkSiteMigrationCreateRemoteNode
(
instance_virtual_master_relative_url
,
remote_virtual_master_dict
[
instance_virtual_master_relative_url
],
activate_kw
=
{
'tag'
:
tag
,
'serialization_tag'
:
tag
,
'limit'
:
1
}
)
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/InstanceTree_fixupSiteMigrationToVirtualMaster.xml
View file @
2c2f83cb
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
REQUEST=None
</string>
</value>
<value>
<string>
tag=None,
REQUEST=None
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/Project_checkSiteMigrationCreateRemoteNode.py
View file @
2c2f83cb
...
@@ -58,4 +58,4 @@ if remote_node is None:
...
@@ -58,4 +58,4 @@ if remote_node is None:
# XXX Then, migrate other documents linked to the virtual master
# XXX Then, migrate other documents linked to the virtual master
for
relative_url_to_migrate
in
relative_url_to_migrate_list
:
for
relative_url_to_migrate
in
relative_url_to_migrate_list
:
object_to_migrate
=
portal
.
restrictedTraverse
(
relative_url_to_migrate
)
object_to_migrate
=
portal
.
restrictedTraverse
(
relative_url_to_migrate
)
object_to_migrate
.
activate
().
Instance_activateMigrationToRemoteProject
(
remote_node
.
getRelativeUrl
())
object_to_migrate
.
activate
(
**
activate_kw
).
Instance_activateMigrationToRemoteProject
(
remote_node
.
getRelativeUrl
())
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/Project_checkSiteMigrationCreateRemoteNode.xml
View file @
2c2f83cb
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
remote_project_relative_url, relative_url_to_migrate_list, REQUEST=None, tag=None, *args, **kw
</string>
</value>
<value>
<string>
remote_project_relative_url, relative_url_to_migrate_list, REQUEST=None, tag=None,
activate_kw=None,
*args, **kw
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
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