Commit 09dcbd74 authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_upgrader: do not run activeSense for post-upgrade step

As results may be inconsistent as long as pre-upgrade and upgrade steps have been run for real
parent 28af3636
...@@ -12,6 +12,9 @@ pre_upgrade_tag = '%s-preupgrade' % tag ...@@ -12,6 +12,9 @@ pre_upgrade_tag = '%s-preupgrade' % tag
upgrade_tag = '%s-upgrade' % tag upgrade_tag = '%s-upgrade' % tag
post_upgrade_tag = '%s-postupgrade' % tag post_upgrade_tag = '%s-postupgrade' % tag
active_process = context.newActiveProcess()
portal_alarms.upgrader_check_pre_upgrade.activate( portal_alarms.upgrader_check_pre_upgrade.activate(
activity='SQLQueue', activity='SQLQueue',
tag=pre_upgrade_tag, tag=pre_upgrade_tag,
...@@ -23,15 +26,15 @@ portal_alarms.upgrader_check_upgrader.activate( ...@@ -23,15 +26,15 @@ portal_alarms.upgrader_check_upgrader.activate(
after_tag=pre_upgrade_tag, after_tag=pre_upgrade_tag,
).activeSense(fixit=fixit, params={'tag': upgrade_tag}) ).activeSense(fixit=fixit, params={'tag': upgrade_tag})
portal_alarms.upgrader_check_post_upgrade.activate( if fixit:
activity='SQLQueue', portal_alarms.upgrader_check_post_upgrade.activate(
tag=post_upgrade_tag, activity='SQLQueue',
after_tag=upgrade_tag, tag=post_upgrade_tag,
).activeSense(fixit=fixit, params={'tag': post_upgrade_tag}) after_tag=upgrade_tag,
).activeSense(fixit=fixit, params={'tag': post_upgrade_tag})
# start another activity to collect the results from each upgrader step # start another activity to collect the results from each upgrader step
active_process = context.newActiveProcess()
context.activate(after_tag=post_upgrade_tag).Alarm_postFullUpgradeNeed( context.activate(after_tag=post_upgrade_tag).Alarm_postFullUpgradeNeed(
active_process=active_process.getRelativeUrl()) active_process=active_process.getRelativeUrl())
......
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