Skip to content

Commit

Permalink
[Stable Oct GA] Bring back Scheduled Shutdown MLC models (#23069)
Browse files Browse the repository at this point in the history
Co-authored-by: Naman Agarwal <naagarw@microsoft.com>
  • Loading branch information
namanag16 and Naman Agarwal authored Mar 15, 2023
1 parent 7e5861a commit 4ede5fd
Showing 1 changed file with 52 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3669,8 +3669,7 @@
"schedules": {
"description": "The list of schedules to be applied on the computes.",
"$ref": "#/definitions/ComputeSchedules",
"x-nullable": true,
"readOnly": true
"x-nullable": true
},
"enableNodePublicIp": {
"type": "boolean",
Expand Down Expand Up @@ -4891,11 +4890,11 @@
},
"recurrence": {
"description": "Required if triggerType is Recurrence.",
"$ref": "./mfe.json#/definitions/RecurrenceTrigger"
"$ref": "#/definitions/Recurrence"
},
"cron": {
"description": "Required if triggerType is Cron.",
"$ref": "./mfe.json#/definitions/CronTrigger"
"$ref": "#/definitions/Cron"
},
"schedule": {
"description": "[Deprecated] Not used any more.",
Expand Down Expand Up @@ -4978,6 +4977,55 @@
"modelAsString": true
}
},
"Recurrence": {
"type": "object",
"description": "The workflow trigger recurrence for ComputeStartStop schedule type.",
"properties": {
"frequency": {
"description": "[Required] The frequency to trigger schedule.",
"$ref": "./mfe.json#/definitions/RecurrenceFrequency"
},
"interval": {
"description": "[Required] Specifies schedule interval in conjunction with frequency",
"type": "integer",
"format": "int32"
},
"startTime": {
"description": "The start time in yyyy-MM-ddTHH:mm:ss format.",
"type": "string",
"x-nullable": true
},
"timeZone": {
"description": "Specifies time zone in which the schedule runs.\r\nTimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11",
"default": "UTC",
"type": "string"
},
"schedule": {
"description": "[Required] The recurrence schedule.",
"$ref": "./mfe.json#/definitions/RecurrenceSchedule"
}
}
},
"Cron": {
"type": "object",
"description": "The workflow trigger cron for ComputeStartStop schedule type.",
"properties": {
"startTime": {
"description": "The start time in yyyy-MM-ddTHH:mm:ss format.",
"type": "string",
"x-nullable": true
},
"timeZone": {
"description": "Specifies time zone in which the schedule runs.\r\nTimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11",
"type": "string",
"default": "UTC"
},
"expression": {
"description": "[Required] Specifies cron expression of schedule.\r\nThe expression should follow NCronTab format.",
"type": "string"
}
}
},
"ComputeInstanceDataMount": {
"type": "object",
"description": "Defines an Aml Instance DataMount.",
Expand Down

0 comments on commit 4ede5fd

Please sign in to comment.