BaseDaskBackend¶
-
class
openff.evaluator.backends.dask.
BaseDaskBackend
(number_of_workers=1, resources_per_worker=<openff.evaluator.backends.backends.ComputeResources object>)[source]¶ A base dask backend class, which implements functionality which is common to all other dask based backends.
-
__init__
(number_of_workers=1, resources_per_worker=<openff.evaluator.backends.backends.ComputeResources object>)[source]¶ Constructs a new BaseDaskBackend object.
Methods
__init__
([number_of_workers, …])Constructs a new BaseDaskBackend object.
start
()Start the calculation backend.
stop
()Stop the calculation backend.
submit_task
(function, *args, **kwargs)Submit a task to the compute resources managed by this backend.
Attributes
Returns whether this backend has been started yet.
-
abstract
submit_task
(function, *args, **kwargs)¶ Submit a task to the compute resources managed by this backend.
- Parameters
function (function) – The function to run.
- Returns
Returns a future object which will eventually point to the results of the submitted task.
- Return type
Future
-