Skip to content

Commit

Permalink
[Preview] Bring Back Scheduled Shutdown MLC models (#23040)
Browse files Browse the repository at this point in the history
* [Preview] Bring Back Scheduled Shutdown MLC models

* update example json

---------

Co-authored-by: Naman Agarwal <naagarw@microsoft.com>
  • Loading branch information
namanag16 and Naman Agarwal authored Mar 15, 2023
1 parent d8975fb commit ab07cd0
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"action": "Stop",
"triggerType": "Cron",
"cron": {
"triggerType": "Cron",
"expression": "0 18 * * *",
"startTime": "2021-04-23T01:30:00",
"timeZone": "Pacific Standard Time"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5373,6 +5373,7 @@
"$ref": "#/definitions/ScheduleStatus"
},
"action": {
"description": "[Required] The compute power action.",
"$ref": "#/definitions/ComputePowerAction"
},
"triggerType": {
Expand All @@ -5381,11 +5382,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 @@ -5468,6 +5469,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 ab07cd0

Please sign in to comment.