tardis.adapters.sites.moab module

class tardis.adapters.sites.moab.MoabAdapter(machine_type: str, site_name: str)[source]

Bases: tardis.interfaces.siteadapter.SiteAdapter

static check_remote_resource_uuid(resource_attributes, regex, response)[source]
async deploy_resource(resource_attributes: tardis.utilities.attributedict.AttributeDict) tardis.utilities.attributedict.AttributeDict[source]

Abstract method to define the interface to deploy a new resource at a resource provider. :param resource_attributes: Contains describing attributes of the resource, defined in the Drone implementation! :type resource_attributes: AttributeDict :return: Contains updated describing attributes of the resource. :rtype: AttributeDict

handle_exceptions()[source]

Abstract method defining the interface to handle exception occurring during interacting with the resource provider. :return: None

msub_cmdline_options()[source]
async resource_status(resource_attributes: tardis.utilities.attributedict.AttributeDict) tardis.utilities.attributedict.AttributeDict[source]

Abstract method to define the interface to check the status of resources at a resource provider. :param resource_attributes: Contains describing attributes of the resource, defined in the Drone implementation! :type resource_attributes: AttributeDict :return: Contains updated describing attributes of the resource. :rtype: AttributeDict

async stop_resource(resource_attributes: tardis.utilities.attributedict.AttributeDict)[source]

Abstract method to define the interface to stop resources at a resource provider. :param resource_attributes: Contains describing attributes of the resource, defined in the Drone implementation! :type resource_attributes: AttributeDict :return: Contains updated describing attributes of the resource. :rtype: AttributeDict

async terminate_resource(resource_attributes: tardis.utilities.attributedict.AttributeDict)[source]

Abstract method to define the interface to terminate resources at a resource provider. :param resource_attributes: Contains describing attributes of the resource, defined in the Drone implementation! :type resource_attributes: AttributeDict :return: Contains updated describing attributes of the resource. :rtype: AttributeDict

async tardis.adapters.sites.moab.moab_status_updater(executor)[source]