-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add job suspend resume paths #29788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
scrappywyrm
wants to merge
15
commits into
Azure:release-app-Microsoft.App-2024-08-02-preview
from
scrappywyrm:add-job-suspend-resume
Closed
Add job suspend resume paths #29788
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
4b27bd8
add fields
9c0fa31
add
31e6b1f
Update Jobs.json
scrappywyrm 4d52e9c
Update Jobs_Resume.json
scrappywyrm d7c5bf7
Update Jobs_Suspend.json
scrappywyrm 588b532
add azure-asyncoperation
77801a1
fix lintdiff
7ab0493
fix
c7ab3d8
fix
2ac7e6c
fix
3e29350
add
678f0ea
Merge branch 'release-app-Microsoft.App-2024-08-02-preview' into add-…
scrappywyrm 1b17a0f
Update Jobs_Resume.json
scrappywyrm 6a00d7a
Merge branch 'release-app-Microsoft.App-2024-08-02-preview' into add-…
scrappywyrm d127169
fix JobName parameter
scrappywyrm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
95 changes: 95 additions & 0 deletions
95
...n/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_Resume.json
This file contains hidden or 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,95 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
| "resourceGroupName": "rg", | ||
| "jobName": "testcontainerAppsJob0", | ||
| "api-version": "2024-08-02-preview" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "headers": {}, | ||
| "body": { | ||
| "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/jobs/testcontainerAppsJob0", | ||
| "name": "testcontainerAppsJob0", | ||
| "type": "Microsoft.App/jobs", | ||
| "location": "East US", | ||
| "properties": { | ||
| "provisioningState": "Succeeded", | ||
| "runningState": "Active", | ||
| "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", | ||
| "configuration": { | ||
| "replicaTimeout": 10, | ||
| "replicaRetryLimit": 10, | ||
| "manualTriggerConfig": { | ||
| "replicaCompletionCount": 1, | ||
| "parallelism": 4 | ||
| }, | ||
| "triggerType": "Manual", | ||
| "identitySettings": [ | ||
| { | ||
| "identity": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity", | ||
| "lifecycle": "All" | ||
| }, | ||
| { | ||
| "identity": "system", | ||
| "lifecycle": "Init" | ||
| } | ||
| ] | ||
| }, | ||
| "template": { | ||
| "containers": [ | ||
| { | ||
| "image": "repo/testcontainerAppsJob0:v4", | ||
| "name": "testcontainerAppsJob0", | ||
| "resources": { | ||
| "cpu": 0.2, | ||
| "memory": "100Mi" | ||
| }, | ||
| "volumeMounts": [ | ||
| { | ||
| "volumeName": "azurefile", | ||
| "mountPath": "/mnt/path1", | ||
| "subPath": "subPath1" | ||
| }, | ||
| { | ||
| "volumeName": "nfsazurefile", | ||
| "mountPath": "/mnt/path2", | ||
| "subPath": "subPath2" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "initContainers": [ | ||
| { | ||
| "image": "repo/testcontainerAppsJob0:v4", | ||
| "name": "testinitcontainerAppsJob0", | ||
| "resources": { | ||
| "cpu": 0.2, | ||
| "memory": "100Mi" | ||
| } | ||
| } | ||
| ], | ||
| "volumes": [ | ||
| { | ||
| "name": "azurefile", | ||
| "storageType": "AzureFile", | ||
| "storageName": "storage" | ||
| }, | ||
| { | ||
| "name": "nfsazurefile", | ||
| "storageType": "NfsAzureFile", | ||
| "storageName": "nfsStorage" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "202": { | ||
| "headers": { | ||
| "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/jobs/testcontainerAppsJob0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2024-08-02-preview", | ||
| "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/jobs/testcontainerAppsJob0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2024-08-02-preview" | ||
| } | ||
| } | ||
| } | ||
| } |
95 changes: 95 additions & 0 deletions
95
.../app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_Suspend.json
This file contains hidden or 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,95 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
| "resourceGroupName": "rg", | ||
| "jobName": "testcontainerAppsJob0", | ||
| "api-version": "2024-08-02-preview" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "headers": {}, | ||
| "body": { | ||
| "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/jobs/testcontainerAppsJob0", | ||
| "name": "testcontainerAppsJob0", | ||
| "type": "Microsoft.App/jobs", | ||
| "location": "East US", | ||
| "properties": { | ||
| "provisioningState": "Succeeded", | ||
| "runningState": "Suspended", | ||
| "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", | ||
| "configuration": { | ||
| "replicaTimeout": 10, | ||
| "replicaRetryLimit": 10, | ||
| "manualTriggerConfig": { | ||
| "replicaCompletionCount": 1, | ||
| "parallelism": 4 | ||
| }, | ||
| "triggerType": "Manual", | ||
| "identitySettings": [ | ||
| { | ||
| "identity": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity", | ||
| "lifecycle": "All" | ||
| }, | ||
| { | ||
| "identity": "system", | ||
| "lifecycle": "Init" | ||
| } | ||
| ] | ||
| }, | ||
| "template": { | ||
| "containers": [ | ||
| { | ||
| "image": "repo/testcontainerAppsJob0:v4", | ||
| "name": "testcontainerAppsJob0", | ||
| "resources": { | ||
| "cpu": 0.2, | ||
| "memory": "100Mi" | ||
| }, | ||
| "volumeMounts": [ | ||
| { | ||
| "volumeName": "azurefile", | ||
| "mountPath": "/mnt/path1", | ||
| "subPath": "subPath1" | ||
| }, | ||
| { | ||
| "volumeName": "nfsazurefile", | ||
| "mountPath": "/mnt/path2", | ||
| "subPath": "subPath2" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "initContainers": [ | ||
| { | ||
| "image": "repo/testcontainerAppsJob0:v4", | ||
| "name": "testinitcontainerAppsJob0", | ||
| "resources": { | ||
| "cpu": 0.2, | ||
| "memory": "100Mi" | ||
| } | ||
| } | ||
| ], | ||
| "volumes": [ | ||
| { | ||
| "name": "azurefile", | ||
| "storageType": "AzureFile", | ||
| "storageName": "storage" | ||
| }, | ||
| { | ||
| "name": "nfsazurefile", | ||
| "storageType": "NfsAzureFile", | ||
| "storageName": "nfsStorage" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "202": { | ||
| "headers": { | ||
| "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/jobs/testcontainerAppsJob0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2024-08-02-preview", | ||
| "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/jobs/testcontainerAppsJob0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2024-08-02-preview" | ||
| } | ||
| } | ||
| } | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.