Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yusei Tahara
erp5
Commits
535dd563
Commit
535dd563
authored
May 03, 2017
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_upgrader: no need to call activeSense in activities in Alarm_runFullUpgrader
parent
deb49c45
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
16 deletions
+28
-16
bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/Alarm_runFullUpgrader.py
...eItem/portal_skins/erp5_upgrader/Alarm_runFullUpgrader.py
+28
-16
No files found.
bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/Alarm_runFullUpgrader.py
View file @
535dd563
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment