ez_azml.cloud_runs.commands.command.CommandRun

class ez_azml.cloud_runs.commands.command.CommandRun(code: str | Path, commands: str | list[str], ws_connection: WorkspaceConnection | None = None, flags: list[str] | None = None, identity: UserIdentityConfiguration | None = None, name: str | None = None, register_kwargs: dict[str, Any] | None = None, **kwargs)

Bases: CloudRun

Cloud run that is based on AzureML Commands.

Parameters:
  • code – location of the python scripts to use

  • commands – commands to run on the cloud (e.g. python my_script.py)

  • flags – flags to use with the last command.

  • identity – credentials to use.

  • name – command’s name.

  • register_kwargs – kwargs to use when registering component.

__init__(code: str | Path, commands: str | list[str], ws_connection: WorkspaceConnection | None = None, flags: list[str] | None = None, identity: UserIdentityConfiguration | None = None, name: str | None = None, register_kwargs: dict[str, Any] | None = None, **kwargs) None

Methods

__init__(code, commands[, ws_connection, ...])

get_component(**kwargs)

Returns the mldesigner component.

on_register_end()

Hook called after a component has been registered.

on_register_start()

Hook called before a component has been registered.

on_run_end(output)

Hook called once run has been submitted.

on_run_start()

Hook called before run is submitted.

register([ml_client])

Registers the run as a reusable component.

run()

Submits and runs the job.

Attributes

cli_command

Actual cli command run on AzureML.

command

Runnable command.