bec_lib.dap_plugin_objects.DAPPluginObjectAutoRun#
- class DAPPluginObjectAutoRun(service_name: str, plugin_info: dict, client: BECClient = None, auto_run_supported: bool = False, service_info: dict = None)[source]#
Bases:
DAPPluginObject
DAP plugin object that supports auto run. This class should be used for plugins that support auto run. To customize a plugin, create a new class that inherits from this class and override the methods as needed.
- Parameters:
service_name (str) – The name of the service.
plugin_info (dict) – Information about the plugin.
client (BECClient, optional) – The BEC client. Defaults to None.
auto_run_supported (bool, optional) – Whether the plugin supports auto run. Defaults to False.
service_info (dict, optional) – Information about the service. Defaults to None.
result_cls (type, optional) – The class to use for the result of the plugin. Defaults to None.
Methods
Get the data from last run.
Attributes
Set to True to start a continously running worker.
- property auto_run#
Set to True to start a continously running worker.
- get_data()#
Get the data from last run.