climate_ref.executor.synchronous
#
SynchronousExecutor
#
Run a diagnostic synchronously, in-process.
This is mainly useful for debugging and testing. climate_ref.executor.LocalExecutor is a more general purpose executor.
Source code in packages/climate-ref/src/climate_ref/executor/synchronous.py
join(timeout)
#
Wait for all diagnostics to finish
This returns immediately because the executor runs diagnostics synchronously.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
timeout
|
float
|
Timeout in seconds (Not used) |
required |
Source code in packages/climate-ref/src/climate_ref/executor/synchronous.py
run(definition, execution=None)
#
Run a diagnostic in process
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
definition
|
ExecutionDefinition
|
A description of the information needed for this execution of the diagnostic |
required |
execution
|
Execution | None
|
A database model representing the execution of the diagnostic. If provided, the result will be updated in the database when completed. |
None
|