forked from D-Net/dnet-hadoop
Clear working dir in bipranker workflow
This commit is contained in:
parent
5f1ed61c1f
commit
671ba8a5a7
|
@ -48,16 +48,25 @@
|
|||
<case to="get-file-names">${wf:conf('resume') eq "format-results"}</case>
|
||||
<case to="map-openaire-to-doi">${wf:conf('resume') eq "map-ids"}</case>
|
||||
<case to="map-scores-to-dois">${wf:conf('resume') eq "map-scores"}</case>
|
||||
<case to="create-openaire-ranking-graph">${wf:conf('resume') eq "start"}</case>
|
||||
<case to="clear-working-dir">${wf:conf('resume') eq "start"}</case>
|
||||
|
||||
<!-- Aggregation of impact scores on the project level -->
|
||||
<case to="project-impact-indicators">${wf:conf('resume') eq "projects-impact"}</case>
|
||||
<case to="create-actionset">${wf:conf('resume') eq "create-actionset"}</case>
|
||||
|
||||
<default to="create-openaire-ranking-graph" />
|
||||
<default to="clear-working-dir" />
|
||||
</switch>
|
||||
</decision>
|
||||
|
||||
<action name="clear-working-dir">
|
||||
<fs>
|
||||
<delete path="${workingDir}"/>
|
||||
<mkdir path="${workingDir}"/>
|
||||
</fs>
|
||||
<ok to="create-openaire-ranking-graph"/>
|
||||
<error to="clear-working-dir-fail"/>
|
||||
</action>
|
||||
|
||||
<!-- initial step: create citation network -->
|
||||
<action name="create-openaire-ranking-graph">
|
||||
<spark xmlns="uri:oozie:spark-action:0.2">
|
||||
|
@ -606,6 +615,10 @@
|
|||
<message>Calculating project impact indicators failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
|
||||
</kill>
|
||||
|
||||
<kill name="clear-working-dir-fail">
|
||||
<message>Re-create working dir failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
|
||||
</kill>
|
||||
|
||||
<!-- Define ending node -->
|
||||
<end name="end" />
|
||||
|
||||
|
|
Loading…
Reference in New Issue