Module clients.dai_engine.dai_engine
Functions
from_dai_engine_api_object
Classes
DAIEngine
Methods
connect
Connect to and interact with a Driverless AI server.
Args
verify
:Union[bool, str]
, optional- when using https on the Driverless AI server, setting this to False will disable SSL certificates verification. A path to cert(s) can also be passed to verify, see:https://requests.readthedocs.io/en/master/user/advanced/#ssl-cert-verification. Defaults to True.
backend_version_override
:Optional[str]
, optional- version of client backend to use, overrides Driverless AI server version detection. Specify
"latest"
to get the most recent backend supported. In most cases the user should rely on Driverless AI server version detection and leave this as the default. Defaults to None.
delete
Initiates deletion of the engine from its workspace. Once the engine is deleted, any further action with the engine will result in an error.
Args
allow_missing
:bool
, optional- When set to True and the DAIEngine
is not found, then the request will succeed but no changes are made. validate_only(bool, optional): When set to True, request is validated but no changes are made.
migrate_creator
pause
Pauses the engine and updates its data from the server response.
resize_storage
resume
Resumes the engine and updates its data from the server response.
to_api_object
to_dai_engine_resource
update
Updates the engine.
Args
update_mask
:str
, optionalComma separated paths referencing which fields to update. Update mask must be non-empty.
Allowed field paths are: max_running_duration. Paths are case sensitive (must match exactly). Example - update only cpu: update_mask="cpu" Example - update only cpu and gpu: update_mask="cpu,gpu"
To update all allowed fields, specify exactly one path with value "*", this is a default value.
allow_missing
:bool
, optional- When set and the DAIEngine is not found, a new one is created. In this situation,
update_mask
is ignored, i.e. all fields are applied regardless of any provided update mask; but the update mask must be still present. Defaults to False. validate_only
:bool
, optional- When set, request is validated but no changes are made. Defaults to False.
upgrade_version
wait
Waits for the engine to reach a final (stable) state. Final states are RUNNING or PAUSED. Function updates an engine every 5 seconds and checks its internal state. While waiting for the next update, function calls time.sleep()
.
Args
timeout_seconds
:float
, optional- Time limit in seconds for how
long to wait. If no timeout is specified, function will be blocking until the waiting is finished. Potentially forever in case of an unexpected error. Defaults to None.
wait_async
Waits for an engine to reach a final (stable) state. Final states are RUNNING or PAUSED. Function updates an engine every 5 seconds and checks its internal state. While waiting for the next update, function calls asyncio.sleep()
.
Args
timeout_seconds
:float
, optional- Time limit in seconds for how
long to wait. If no timeout is specified, function will be blocking until the waiting is finished. Potentially forever in case of an unexpected error. Defaults to None.
- Submit and view feedback for this page
- Send feedback about AI Engine Manager to cloud-feedback@h2o.ai