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(
method_kw={'tag': tag},
activate_kw={'tag': tag, 'priority': 1},
# Go slowly, because it generate DB conflicts
packet_size=1,
activity_count=1,
portal_type="Instance Tree",
**migrated_select_dict
......
......@@ -56,6 +56,14 @@ if remote_node is None:
# XXX Then, migrate other documents linked to the virtual master
for relative_url_to_migrate in relative_url_to_migrate_list:
object_to_migrate = portal.restrictedTraverse(relative_url_to_migrate)
object_to_migrate.activate(**activate_kw).Instance_activateMigrationToRemoteProject(remote_node.getRelativeUrl())
portal.portal_catalog.searchAndActivate(
method_id='Instance_activateMigrationToRemoteProject',
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