Free cookie consent management tool by TermsFeed Policy Generator

Changes between Initial Version and Version 1 of Ticket #2828


Ignore:
Timestamp:
08/31/17 11:27:05 (7 years ago)
Author:
pfleck
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2828 – Description

    initial v1  
    88 For starting an `IExecutable` we offer synchronous and asynchronous methods. However, `Pause` and `Stop` are usually asynchronous too. Only `Prepare` is (currently) always synchronous.
    99 We should either make all methods blocking or offer additional async versions such as the `Start(Async)`.
    10 
    1110 - `ExecutionStates` are not changed immediately after calling `Prepare/Start/Pause/Stop`:[[BR]]
    1211   For instance, after calling `StartAsync` the ExecutionState is almost certainly not `Started` but still `Prepared`. (Same for Prepare/Pause/Stop).
    1312   As discussed with mkommenda, our current `ExecutionStates` only mark "finished" states. Maybe we should also introduce "transition"-states such as "Starting" vs "Started" or "PausePending" vs "Paused".
     13 - Potential NullReferenceExeption from `CancellationTokenSources`:[[BR]]
     14   Calling `Stop` on some IExecutables (`BasicAlgorithm`, `Engine`) when the Executable is "almost" finished: The Executable is not Stopped yet, however the CancellationTokenSource is already disposed or set to null.
     15
    1416==== BatchRun ====
    1517 - Calling `Stop` while the (inner) optimizer is executing its `Prepare` method:
     
    1719   - After the (inner) optimizer finishes its `Prepare` method the `BatchRun` itself becomes `Prepared`.
    1820   - In this case the `BatchRun` starts an additional (inner) optimizer Run and then pauses and fires `OnPaused` (the BR thinks the optimizer was started externally).
     21
    1922==== Experiment ====
    20  - ToDo
     23 - An `Experiment` can continue executing some optimizers after it was stopped when one optimizer is a `BatchRun` that was paused instead of stopped (see above).
    2124
    2225