Commit eb5d1265 authored by Romain Courteaud's avatar Romain Courteaud

slapos_upgrader: try to reduce conflict

parent d23c3231
...@@ -37,6 +37,10 @@ portal.portal_catalog.searchAndActivate( ...@@ -37,6 +37,10 @@ portal.portal_catalog.searchAndActivate(
method_kw={'tag': tag}, method_kw={'tag': tag},
activate_kw={'tag': tag, 'priority': 1}, activate_kw={'tag': tag, 'priority': 1},
# Go slowly, because it generate DB conflicts
packet_size=1,
activity_count=1,
portal_type="Instance Tree", portal_type="Instance Tree",
**migrated_select_dict **migrated_select_dict
......
...@@ -56,6 +56,14 @@ if remote_node is None: ...@@ -56,6 +56,14 @@ 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: portal.portal_catalog.searchAndActivate(
object_to_migrate = portal.restrictedTraverse(relative_url_to_migrate) method_id='Instance_activateMigrationToRemoteProject',
object_to_migrate.activate(**activate_kw).Instance_activateMigrationToRemoteProject(remote_node.getRelativeUrl()) method_args=[remote_node.getRelativeUrl()],
activate_kw=activate_kw,
# Go slowly, because it generate DB conflicts
packet_size=1,
activity_count=1,
relative_url=relative_url_to_migrate_list,
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment