forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate jobs from schema load (Azure#27019)
Signed-off-by: Brynn Yin <biyi@microsoft.com> Signed-off-by: Brynn Yin <biyi@microsoft.com>
- Loading branch information
1 parent
e4ab9f3
commit d31e98c
Showing
8 changed files
with
161 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
112 changes: 112 additions & 0 deletions
112
sdk/ml/azure-ai-ml/tests/test_configs/components/pipeline_component_jobs_rest_data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
{ | ||
"id": "mock_id", | ||
"name": "1", | ||
"type": "Microsoft.MachineLearningServices/workspaces/components/versions", | ||
"system_data": { | ||
"created_by": "Brynn Yin", | ||
"created_by_type": "User", | ||
"created_at": "2022-10-25T03:39:27.465966Z", | ||
"last_modified_by": "Brynn Yin", | ||
"last_modified_by_type": "User", | ||
"last_modified_at": "2022-10-25T03:39:28.104555Z" | ||
}, | ||
"properties": { | ||
"properties": {}, | ||
"tags": { | ||
"tag": "tagvalue", | ||
"owner": "sdkteam" | ||
}, | ||
"is_anonymous": false, | ||
"is_archived": false, | ||
"component_spec": { | ||
"name": "test_392226085584", | ||
"version": "1", | ||
"display_name": "Hello World Pipeline Component", | ||
"is_deterministic": "False", | ||
"type": "pipeline", | ||
"description": "This is the basic pipeline component", | ||
"tags": { | ||
"tag": "tagvalue", | ||
"owner": "sdkteam" | ||
}, | ||
"inputs": { | ||
"component_in_path": { | ||
"type": "uri_folder", | ||
"optional": "False", | ||
"description": "A path" | ||
}, | ||
"component_in_number": { | ||
"type": "number", | ||
"optional": "True", | ||
"default": "10.99", | ||
"description": "A number" | ||
}, | ||
"node_compute": { | ||
"type": "string", | ||
"optional": "False", | ||
"default": "cpu-cluster" | ||
} | ||
}, | ||
"jobs": { | ||
"component_a_job": { | ||
"componentId": "mock_id", | ||
"type": "command", | ||
"computeId": "${{parent.inputs.node_compute}}", | ||
"resources": { | ||
"instance_count": "1", | ||
"shm_size": "2g", | ||
"properties": { | ||
"target_selector": { | ||
"my_resource_only": "false", | ||
"allow_spot_vm": "true" | ||
} | ||
} | ||
}, | ||
"inputs": { | ||
"binding_input": { | ||
"job_input_type": "literal", | ||
"value": "${{parent.inputs.component_in_path}}" | ||
}, | ||
"literal_input": { | ||
"job_input_type": "literal", | ||
"value": "11" | ||
}, | ||
"literal_input2": { | ||
"job_input_type": "Literal", | ||
"value": "12" | ||
}, | ||
"data_input": { | ||
"job_input_type": "uri_file", | ||
"mode": "Download", | ||
"uri": "https://my-blob/path/to/data" | ||
}, | ||
"data_input_legacy": { | ||
"job_input_type": "UriFile", | ||
"mode": "Download", | ||
"uri": "https://my-blob/path/to/data" | ||
} | ||
}, | ||
"outputs": { | ||
"output_data": { | ||
"mode": "Upload", | ||
"job_output_type": "uri_folder" | ||
}, | ||
"output_data_legacy": { | ||
"mode": "Upload", | ||
"job_output_type": "UriFolder" | ||
}, | ||
"output_binding": { | ||
"value": "${{parent.outputs.output}}", | ||
"job_output_type": "literal" | ||
}, | ||
"output_binding2": { | ||
"value": "${{parent.outputs.output}}", | ||
"job_output_type": "Literal" | ||
} | ||
} | ||
} | ||
}, | ||
"$schema": "https://azuremlschemas.azureedge.net/development/pipelineComponent.schema.json" | ||
} | ||
} | ||
} |