polaris.tasks.ocean.analysis.analysis_step.AnalysisStep.runtime_setup

AnalysisStep.runtime_setup()[source]

Write the empty manifest fragment before the step runs

The fragment is written here, and again by each add_product() call, so that a step that makes products always leaves one behind: an empty product list until it has something to put in it. Nothing is asked of the step author, because a rule that has to be remembered at the end of run() would be forgotten in exactly the step that made nothing — which is the case that stops the publish step.

Writing it again also clears out what a previous run of the step described, so a fragment never outlives the products it names.