AzureMLLocalRunHook¶
kedro_azureml_pipeline.hooks.AzureMLLocalRunHook
¶
Hook that configures Azure ML asset datasets for local and remote runs.
See Also ¶
- AzureMLAssetDataset : Dataset managed by this hook.
- AzurePipelinesRunner : Remote runner detected by the hook.
- WorkspacesConfig : Workspace config injected into datasets.
Source Code ¶
Source code in src/kedro_azureml_pipeline/hooks/local_run.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | |
Methods ¶
after_context_created(context)
¶
Register the azureml config pattern and resolve workspace config.
Parameters ¶
| Name | Type | Description | Default |
|---|---|---|---|
context
|
KedroContext
|
Kedro project context. |
required |
Source Code ¶
Source code in src/kedro_azureml_pipeline/hooks/local_run.py
after_catalog_created(catalog)
¶
Inject workspace config into all AzureMLAssetDataset entries.
Parameters ¶
| Name | Type | Description | Default |
|---|---|---|---|
catalog
|
DataCatalog
|
Created data catalog. |
required |
Source Code ¶
Source code in src/kedro_azureml_pipeline/hooks/local_run.py
before_pipeline_run(run_params, pipeline, catalog)
¶
Switch asset datasets between local-intermediate and remote mode.
Parameters ¶
| Name | Type | Description | Default |
|---|---|---|---|
run_params
|
dict
|
Parameters passed to the run command. |
required |
pipeline
|
Pipeline
|
Pipeline about to be run. |
required |
catalog
|
DataCatalog
|
Data catalog. |
required |