Run extra_files phase in parallel to other phases.

It seems the other phases executed in Weaver phase does not need
extra_files output, so it can be run in parallel to them.

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
This commit is contained in:
Jan Kaluza 2020-03-12 07:58:57 +01:00
parent afcb3e969b
commit e70ad8aaa5
3 changed files with 15 additions and 12 deletions

BIN
doc/_static/phases.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -11,7 +11,7 @@
inkscape:export-xdpi="90" inkscape:export-xdpi="90"
inkscape:export-filename="/home/lsedlar/repos/pungi/doc/_static/phases.png" inkscape:export-filename="/home/lsedlar/repos/pungi/doc/_static/phases.png"
sodipodi:docname="phases.svg" sodipodi:docname="phases.svg"
inkscape:version="1.0beta2 (2b71d25, 2019-12-03)" inkscape:version="0.92.4 (unknown)"
version="1.1" version="1.1"
id="svg2" id="svg2"
viewBox="0 0 771.66458 221.50019" viewBox="0 0 771.66458 221.50019"
@ -27,16 +27,16 @@
inkscape:document-rotation="0" inkscape:document-rotation="0"
units="px" units="px"
inkscape:window-maximized="1" inkscape:window-maximized="1"
inkscape:window-y="23" inkscape:window-y="0"
inkscape:window-x="0" inkscape:window-x="0"
inkscape:window-height="1035" inkscape:window-height="1015"
inkscape:window-width="1920" inkscape:window-width="1920"
showgrid="false" showgrid="false"
inkscape:current-layer="layer1" inkscape:current-layer="g3668"
inkscape:document-units="px" inkscape:document-units="px"
inkscape:cy="97.894202" inkscape:cy="137.85275"
inkscape:cx="396.63448" inkscape:cx="228.82868"
inkscape:zoom="1.169022" inkscape:zoom="3.3064935"
inkscape:pageshadow="2" inkscape:pageshadow="2"
inkscape:pageopacity="1" inkscape:pageopacity="1"
borderopacity="1.0" borderopacity="1.0"
@ -223,7 +223,8 @@
style="font-size:13.1479px;line-height:1.25">Gather</tspan></text> style="font-size:13.1479px;line-height:1.25">Gather</tspan></text>
</g> </g>
<g <g
id="g3647"> id="g3647"
transform="translate(-59.99997,63.749968)">
<g <g
id="g3644"> id="g3644">
<rect <rect
@ -245,10 +246,11 @@
id="tspan3374" id="tspan3374"
x="165.23042" x="165.23042"
y="923.25934" y="923.25934"
style="font-size:13.1479px;line-height:1.25">ExtraFiles</tspan></text> style="font-size:13.14789963px;line-height:1.25">ExtraFiles</tspan></text>
</g> </g>
<g <g
id="g3658"> id="g3658"
transform="translate(-78.74996)">
<rect <rect
style="fill:#e9b96e;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" style="fill:#e9b96e;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="rect3348" id="rect3348"
@ -267,7 +269,7 @@
id="tspan3378" id="tspan3378"
x="243.95874" x="243.95874"
y="921.86945" y="921.86945"
style="font-size:13.1479px;line-height:1.25">Createrepo</tspan></text> style="font-size:13.14789963px;line-height:1.25">Createrepo</tspan></text>
</g> </g>
<g <g
transform="translate(-150.564,114.11662)" transform="translate(-150.564,114.11662)"

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -426,7 +426,8 @@ def run_compose(compose, create_latest_link=True, latest_link_status=None):
# WEAVER phase - launches other phases which can safely run in parallel # WEAVER phase - launches other phases which can safely run in parallel
essentials_schema = ( essentials_schema = (
buildinstall_phase, buildinstall_phase,
(gather_phase, extrafiles_phase, createrepo_phase), (gather_phase, createrepo_phase),
extrafiles_phase,
(ostree_phase, ostree_installer_phase), (ostree_phase, ostree_installer_phase),
) )
essentials_phase = pungi.phases.WeaverPhase(compose, essentials_schema) essentials_phase = pungi.phases.WeaverPhase(compose, essentials_schema)