Skip to content

ScenarioRun Life Cycle

Vincent Carluer edited this page Jan 31, 2022 · 4 revisions

A ScenarioRun follow this life cycle:

  1. FetchingDatasets
  2. FetchingScenarioParameters
  3. ApplyingScenarioParameters *
  4. ValidatingScenarioData *
  5. SendingScenarioDataToDataWarehouse
  6. PreRun *
  7. Running *
  8. PostRun *
  9. Success
  10. Failed

Every life cycle steps except Running are optionals. * steps are provided by the Solution.

Queued

The ScenarioRun is queued in Platform Compute Cluster and is waiting for execution.

FetchingDataset

The ScenarioRun is fetching every declared Dataset by running their associated Connector.

FetchingScenarioParameters

The ScenarioRun is fetching the Scenario Parameters values from the Platform.

ApplyingScenarioParameters *

The ScenarioRun is running the Solution container with the handle-parameters action to apply the input parameters with the scripts declared in parametersHandlerResource.

Handler directory: code/run_templates/[RUN_TEMPLATE]/parameters_handler

ValidatingScenarioData *

The ScenarioRun is running the Solution container with the validate action to validate the input data with the scripts declared in datasetValidatorResource.

Handler directory: code/run_templates/[RUN_TEMPLATE]/validator

SendingScenarioDataToDataWarehouse

The ScenarioRun is sending Input Parameters values and modified Scenario Data to the DataWarehouse.

PreRun *

The ScenarioRun is running the Solution container with the prerun action to run the scripts declared in preRunResource.

Handler directory: code/run_templates/[RUN_TEMPLATE]/prerun

Running *

The ScenarioRun is running the Solution container with the standard main Simulator or the scripts declared in engineResource.

Handler directory: code/run_templates/[RUN_TEMPLATE]/engine

PostRun *

The ScenarioRun is running the Solution container with the postrun action to run the scripts declared in postRunResource.

Handler directory: code/run_templates/[RUN_TEMPLATE]/postrun

Success

The ScenarioRun finished succesfully.

Failed

The ScenarioRun failed.