Skip to content

Commit

Permalink
adding property layer to jobexecution (#26697)
Browse files Browse the repository at this point in the history
* adding property layer to jobexecution

* adding property layer to jobexecution

* adding property layer to jobexecution

* adding property layer to jobexecution

* adding property layer to jobexecution

* adding property layer to jobexecution

* adding property layer to jobexecution

* adding property layer to jobexecution

* adding property layer to jobexecution
  • Loading branch information
anandanthony authored Dec 8, 2023
1 parent 9b5ad5f commit 8e982a3
Show file tree
Hide file tree
Showing 19 changed files with 559 additions and 476 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@
}
},
"JobExecution": {
"description": "Container Apps Jobs execution.",
"description": "Container Apps Job execution.",
"type": "object",
"properties": {
"name": {
Expand All @@ -943,40 +943,47 @@
"type": "string"
},
"type": {
"description": "Job Type.",
"description": "Job execution type",
"type": "string"
},
"status": {
"description": "Current running State of the job",
"enum": [
"Running",
"Processing",
"Stopped",
"Degraded",
"Failed",
"Unknown",
"Succeeded"
],
"type": "string",
"readOnly": true,
"x-ms-enum": {
"name": "JobExecutionRunningState",
"modelAsString": true
}
},
"startTime": {
"description": "Job execution start time.",
"format": "date-time",
"type": "string"
},
"endTime": {
"description": "Job execution end time.",
"format": "date-time",
"type": "string"
},
"template": {
"description": "Job's execution container.",
"$ref": "#/definitions/JobExecutionTemplate"
"properties": {
"description": "Container Apps Job execution specific properties.",
"type": "object",
"properties": {
"status": {
"description": "Current running State of the job",
"enum": [
"Running",
"Processing",
"Stopped",
"Degraded",
"Failed",
"Unknown",
"Succeeded"
],
"type": "string",
"readOnly": true,
"x-ms-enum": {
"name": "JobExecutionRunningState",
"modelAsString": true
}
},
"startTime": {
"description": "Job execution start time.",
"format": "date-time",
"type": "string"
},
"endTime": {
"description": "Job execution end time.",
"format": "date-time",
"type": "string"
},
"template": {
"description": "Job's execution container.",
"$ref": "#/definitions/JobExecutionTemplate"
}
},
"x-ms-client-flatten": true
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,39 @@
"value": [
{
"name": "testcontainerappjob-27944454",
"status": "Running",
"startTime": "2023-02-13T20:37:30+00:00",
"endTime": "2023-02-13T20:47:30+00:00",
"template": {
"containers": [
{
"image": "repo/testcontainerappsjob0:v4",
"name": "testcontainerappsjob0",
"resources": {
"cpu": 0.5,
"memory": "1Gi"
"properties": {
"status": "Running",
"startTime": "2023-02-13T20:37:30+00:00",
"endTime": "2023-02-13T20:47:30+00:00",
"template": {
"containers": [
{
"image": "repo/testcontainerappsjob0:v4",
"name": "testcontainerappsjob0",
"resources": {
"cpu": 0.5,
"memory": "1Gi"
}
}
}
],
"initContainers": [
{
"image": "repo/testcontainerappsjob0:v4",
"name": "testcontainerappsjob0",
"resources": {
"cpu": 0.5,
"memory": "1Gi"
},
"command": [
"/bin/sh"
],
"args": [
"-c",
"while true; do echo hello; sleep 10;done"
]
}
]
],
"initContainers": [
{
"image": "repo/testcontainerappsjob0:v4",
"name": "testcontainerappsjob0",
"resources": {
"cpu": 0.5,
"memory": "1Gi"
},
"command": [
"/bin/sh"
],
"args": [
"-c",
"while true; do echo hello; sleep 10;done"
]
}
]
}
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,27 @@
"value": [
{
"name": "testcontainerappsjob0-27944453",
"status": "Stopped",
"startTime": "2023-02-13T20:37:30+00:00",
"endTime": "2023-02-13T20:47:30+00:00"
"properties": {
"status": "Stopped",
"startTime": "2023-02-13T20:37:30+00:00",
"endTime": "2023-02-13T20:47:30+00:00"
}
},
{
"name": "testcontainerappsjob0-27944452",
"status": "Stopped",
"startTime": "2023-02-13T20:37:30+00:00",
"endTime": "2023-02-13T20:47:30+00:00"
"properties": {
"status": "Stopped",
"startTime": "2023-02-13T21:37:30+00:00",
"endTime": "2023-02-13T21:47:30+00:00"
}
},
{
"name": "testcontainerappsjob0-27944453",
"status": "Failed",
"startTime": "2023-02-13T20:37:30+00:00",
"endTime": "2023-02-13T20:47:30+00:00"
"properties": {
"status": "Failed",
"startTime": "2023-02-13T22:37:30+00:00",
"endTime": "2023-02-13T22:47:30+00:00"
}
}
],
"nextLink": null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1028,40 +1028,47 @@
"type": "string"
},
"type": {
"description": "Job Type.",
"description": "Job execution type",
"type": "string"
},
"status": {
"description": "Current running State of the job",
"enum": [
"Running",
"Processing",
"Stopped",
"Degraded",
"Failed",
"Unknown",
"Succeeded"
],
"type": "string",
"readOnly": true,
"x-ms-enum": {
"name": "JobExecutionRunningState",
"modelAsString": true
}
},
"startTime": {
"description": "Job execution start time.",
"format": "date-time",
"type": "string"
},
"endTime": {
"description": "Job execution end time.",
"format": "date-time",
"type": "string"
},
"template": {
"description": "Job's execution container.",
"$ref": "#/definitions/JobExecutionTemplate"
"properties": {
"description": "Container Apps Job execution specific properties.",
"type": "object",
"properties": {
"status": {
"description": "Current running State of the job",
"enum": [
"Running",
"Processing",
"Stopped",
"Degraded",
"Failed",
"Unknown",
"Succeeded"
],
"type": "string",
"readOnly": true,
"x-ms-enum": {
"name": "JobExecutionRunningState",
"modelAsString": true
}
},
"startTime": {
"description": "Job execution start time.",
"format": "date-time",
"type": "string"
},
"endTime": {
"description": "Job execution end time.",
"format": "date-time",
"type": "string"
},
"template": {
"description": "Job's execution container.",
"$ref": "#/definitions/JobExecutionTemplate"
}
},
"x-ms-client-flatten": true
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,39 @@
"headers": {},
"body": {
"name": "jobExecution1",
"status": "Running",
"startTime": "2023-02-13T20:37:30+00:00",
"endTime": "2023-02-13T20:47:30+00:00",
"template": {
"containers": [
{
"image": "repo/testcontainerappsjob0:v4",
"name": "testcontainerappsjob0",
"resources": {
"cpu": 0.5,
"memory": "1Gi"
"properties": {
"status": "Running",
"startTime": "2023-02-13T20:37:30+00:00",
"endTime": "2023-02-13T20:47:30+00:00",
"template": {
"containers": [
{
"image": "repo/testcontainerappsjob0:v4",
"name": "testcontainerappsjob0",
"resources": {
"cpu": 0.5,
"memory": "1Gi"
}
}
}
],
"initContainers": [
{
"image": "repo/testcontainerappsjob0:v4",
"name": "testinitcontainerAppsJob0",
"resources": {
"cpu": 0.5,
"memory": "1Gi"
},
"command": [
"/bin/sh"
],
"args": [
"-c",
"while true; do echo hello; sleep 10;done"
]
}
]
],
"initContainers": [
{
"image": "repo/testcontainerappsjob0:v4",
"name": "testinitcontainerAppsJob0",
"resources": {
"cpu": 0.5,
"memory": "1Gi"
},
"command": [
"/bin/sh"
],
"args": [
"-c",
"while true; do echo hello; sleep 10;done"
]
}
]
}
}
}
}
Expand Down
Loading

0 comments on commit 8e982a3

Please sign in to comment.