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
active_process = context.newActiveProcess()
portal_alarms.upgrader_check_pre_upgrade.activate(
activity='SQLQueue',
tag=pre_upgrade_tag,
).activeSense(fixit=fixit, params={'tag': pre_upgrade_tag})
portal_alarms.upgrader_check_upgrader.activate(
activity='SQLQueue',
tag=upgrade_tag,
after_tag=pre_upgrade_tag,
).activeSense(fixit=fixit, params={'tag': upgrade_tag})
portal_alarms.upgrader_check_pre_upgrade.activeSense(
fixit=fixit,
activate_kw={
'activity': 'SQLQueue',
'tag': pre_upgrade_tag,
},
params={'tag': pre_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:
portal_alarms.upgrader_check_post_upgrade.activate(
activity='SQLQueue',
tag=post_upgrade_tag,
after_tag=upgrade_tag,
).activeSense(fixit=fixit, params={'tag': post_upgrade_tag})
portal_alarms.upgrader_check_post_upgrade.activeSense(
fixit=fixit,
activate_kw={
'activity': 'SQLQueue',
'tag': post_upgrade_tag,
'after_tag': upgrade_tag,
},
params={'tag': post_upgrade_tag},
)
# 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())
# 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