Commit 535dd563 authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_upgrader: no need to call activeSense in activities in Alarm_runFullUpgrader

parent deb49c45
...@@ -15,27 +15,39 @@ post_upgrade_tag = '%s-postupgrade' % tag ...@@ -15,27 +15,39 @@ post_upgrade_tag = '%s-postupgrade' % tag
active_process = context.newActiveProcess() active_process = context.newActiveProcess()
portal_alarms.upgrader_check_pre_upgrade.activate( portal_alarms.upgrader_check_pre_upgrade.activeSense(
activity='SQLQueue', fixit=fixit,
tag=pre_upgrade_tag, activate_kw={
).activeSense(fixit=fixit, params={'tag': pre_upgrade_tag}) 'activity': 'SQLQueue',
'tag': pre_upgrade_tag,
portal_alarms.upgrader_check_upgrader.activate( },
activity='SQLQueue', params={'tag': pre_upgrade_tag},
tag=upgrade_tag, )
after_tag=pre_upgrade_tag,
).activeSense(fixit=fixit, params={'tag': upgrade_tag}) portal_alarms.upgrader_check_upgrader.activeSense(
fixit=fixit,
activate_kw={
'activity': 'SQLQueue',
'tag': upgrade_tag,
'after_tag': pre_upgrade_tag,
},
params={'tag': upgrade_tag},
)
if fixit: if fixit:
portal_alarms.upgrader_check_post_upgrade.activate( portal_alarms.upgrader_check_post_upgrade.activeSense(
activity='SQLQueue', fixit=fixit,
tag=post_upgrade_tag, activate_kw={
after_tag=upgrade_tag, 'activity': 'SQLQueue',
).activeSense(fixit=fixit, params={'tag': post_upgrade_tag}) 'tag': post_upgrade_tag,
'after_tag': upgrade_tag,
},
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
context.activate(after_tag=post_upgrade_tag).Alarm_postFullUpgradeNeed( context.activate(after_tag=(upgrade_tag, post_upgrade_tag)).Alarm_postFullUpgradeNeed(
active_process=active_process.getRelativeUrl()) active_process=active_process.getRelativeUrl())
# Nothing else to do, so we can disable. # Nothing else to do, so we can disable.
......
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