Skip to content

Commit f15265d

Browse files
committed
edits
1 parent 8dfbb8f commit f15265d

File tree

3 files changed

+117
-103
lines changed

3 files changed

+117
-103
lines changed

articles/spring-apps/basic-standard/quickstart-setup-log-analytics.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ You can set up Azure Monitor Logs for your application in Azure Spring Apps to c
2525

2626
## Prerequisites
2727

28-
Complete the previous quickstart in this series: [Provision an Azure Spring Apps service](./quickstart-provision-service-instance.md).
28+
Complete the previous quickstart in this series: [Provision an Azure Spring Apps service instance](./quickstart-provision-service-instance.md).
2929

3030
#### [Portal](#tab/Azure-Portal)
3131

3232
## Create a Log Analytics workspace
3333

34-
To create a workspace, follow the steps in [Create a Log Analytics workspace in the Azure portal](../../azure-monitor/logs/quick-create-workspace.md).
34+
To create a workspace, follow the steps in [Create a Log Analytics workspace](../../azure-monitor/logs/quick-create-workspace.md).
3535

3636
## Set up Log Analytics for a new service
3737

@@ -50,7 +50,7 @@ In the wizard for creating an Azure Spring Apps service instance, you can config
5050
1. Fill out the form on the **Diagnostic setting** page:
5151

5252
- **Diagnostic setting name**: Set a unique name for the configuration.
53-
- **Logs** > **Categories**: Select **ApplicationConsole** and **SystemLogs**. For more information on log categories and contents, see [Create diagnostic settings to send Azure Monitor platform logs and metrics to different destinations](../../azure-monitor/essentials/diagnostic-settings.md).
53+
- **Logs** > **Categories**: Select **ApplicationConsole** and **SystemLogs**. For more information on log categories and contents, see [Diagnostic settings in Azure Monitor](../../azure-monitor/essentials/diagnostic-settings.md).
5454
- **Destination details**: Select **Send to Log Analytics workspace** and specify the Log Analytics workspace that you created previously.
5555

5656
:::image type="content" source="media/quickstart-setup-log-analytics/diagnostic-settings-edit-form.png" alt-text="Screenshot that shows an example of set-up diagnostic settings." lightbox="media/quickstart-setup-log-analytics/diagnostic-settings-edit-form.png":::
@@ -95,7 +95,7 @@ Setting up for a new service isn't applicable when you're using the Azure CLI.
9595
--query id --output tsv
9696
```
9797
98-
1. Configure the diagnostic settings. For more information on log categories and contents, see [Create diagnostic settings to send Azure Monitor platform logs and metrics to different destinations](../../azure-monitor/essentials/diagnostic-settings.md).
98+
1. Configure the diagnostic settings. For more information on log categories and contents, see [Diagnostic settings in Azure Monitor](../../azure-monitor/essentials/diagnostic-settings.md).
9999
100100
```azurecli
101101
az monitor diagnostic-settings create \
Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: "Job in Azure Spring Apps"
2+
title: Job in Azure Spring Apps
33
description: Learn more about the Job concept in Azure Spring Apps.
44
author: KarlErickson
55
ms.author: ninpan
66
ms.service: spring-apps
77
ms.topic: conceptual
8-
ms.date: 05/12/2024
8+
ms.date: 06/06/2024
99
ms.custom: devx-track-java, devx-track-extended-java
1010
---
1111

@@ -18,38 +18,42 @@ ms.custom: devx-track-java, devx-track-extended-java
1818

1919
**This article applies to:** ❌ Basic/Standard ✔️ Enterprise
2020

21-
*Job* is a key concept in the resource model of Azure Spring Apps. Like *App* in Azure Spring Apps, both are considered resources managed within the Service.
21+
*Job* is a key concept in the resource model of Azure Spring Apps. Like *App* in Azure Spring Apps, both are considered resources managed within the service.
2222

23-
While *App* runs the workload continuously, *Job* enables customers to run workloads that complete within a finite duration. Examples of apps include web apps and background services that process input continuously, and examples of jobs include batch processes and on-demand tasks.
23+
An *App* runs a workload continuously, whereas a *Job* enables customers to run workloads that complete within a finite duration. Examples of apps include web apps and background services that process input continuously. Examples of jobs include batch processes and on-demand tasks.
2424

25-
Spring developers who write jobs probably choose the Spring Batch framework or Spring Cloud Task. While Spring Batch excels in handling large-scale batch processing tasks, Spring Cloud Task is specialized for managing short-lived tasks with minimal overhead. You can run both types in Azure Spring Apps jobs efficiently to meet diverse requirements.
25+
Spring developers who write jobs probably choose the Spring Batch framework or Spring Cloud Task. While Spring Batch excels in handling large-scale batch processing tasks, Spring Cloud Task is specialized for managing short-lived tasks with minimal overhead. You can run both types efficiently in Azure Spring Apps jobs to meet diverse requirements.
2626

27-
## Execute a job
27+
## Job execution
2828

29-
A job execution refers to the process of running a particular task or set of tasks defined within a job. It encompasses the entire lifecycle of executing those tasks, including initializing, processing, and completing the job according to its specifications.
29+
A *job execution* refers to the process of running a particular task or set of tasks defined within a job. It encompasses the entire lifecycle of executing those tasks, including initializing, processing, and completing the job according to its specifications.
3030

31-
A common lifecycle of a job execution in Azure Spring Apps is from `pending`, `running`, to termination status `completed` or `failed` depending on whether the execution finishes successfully or not.
31+
A common lifecycle of a job execution in Azure Spring Apps is from `pending` and `running` to a termination status of `completed` or `failed`, depending on whether the execution finishes successfully.
3232

3333
Each time the job is executed, it adopts its preset configuration from the job, with certain aspects allowing for customization to accommodate different runs.
3434

35-
In nonparallel job execution, only one instance runs at a time. Whereas in parallel execution, multiple instances can run simultaneously.
35+
In nonparallel job execution, only one instance runs at a time. In parallel execution, multiple instances can run simultaneously.
3636

37-
## Configure a job
37+
## Configuration
3838

39-
The job establishes the default configuration utilized for each execution, encompassing elements like the user application source and trigger configuration. Each execution of the job inherits the configuration, allowing certain parameters to be overridden with new values for individual executions.
39+
The job establishes the default configuration used for each execution, encompassing elements like the user application source and trigger configuration. Each execution of the job inherits the configuration, enabling certain parameters to be overridden with new values for individual executions.
4040

4141
The following table shows the configuration in job level or job execution level:
4242

43-
| Property name | Scope | Notes |
44-
|------------------------------|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
45-
| Trigger type | Job | The manual trigger for public preview. More trigger types are supported later. |
46-
| Parallelism | Job | The count of instances of the job that executes in the same time. The default value is 1. For parallel job, you can get the index of each instance through `JOB_COMPLETION_INDEX` environment variable. |
47-
| Retry limit | Job | The maximum number of a job attempts to execution after encountering a failure or error. The default value is 0, which means the job doesn't retry if it fails. |
48-
| Timeout | Job | The maximum time in seconds when the job failed. You can leave it unset or set the value at 0, which means the job has no timeout. |
49-
| Arguments | Job/Execution | The value of arguments specified for the execution override of the job. |
50-
| Environment variables | Job/Execution | The key-value pairs format. The environment variables specified in job level are default values for each execution. The environment variables specified in execution level have higher priority. You can specify part of those environment variables when start an execution to override the value in job level. |
51-
| Secret environment variables | Job/Execution | The credentials, where the secret values are encrypted. |
52-
| CPU | Job/Execution | The value of CPU specified for the execution override of the job. |
53-
| Memory | Job/Execution | The value of Memory specified for the execution override of the job. |
54-
55-
The configuration on job level applies when creating or updating the job resource, and the configuration on job execution level applies when starting a job execution.
43+
| Property name | Scope | Notes |
44+
|------------------------------|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
45+
| Trigger type | Job | The manual trigger for public preview. More trigger types are planned for later. |
46+
| Parallelism | Job | The count of instances of the job that executes in the same time. The default value is 1. For parallel jobs, you can get the index of each instance through the `JOB_COMPLETION_INDEX` environment variable. |
47+
| Retry limit | Job | The maximum number of times a job attempts execution after encountering a failure or error. The default value is 0, which means the job doesn't retry if it fails. |
48+
| Timeout | Job | The maximum number of seconds to wait for a job to complete before its status is set to `failed`. You can leave it unset or set the value to 0, which means the job has no timeout. |
49+
| Arguments | Job/Execution | The value of arguments specified for the execution override of the job. |
50+
| Environment variables | Job/Execution | Variables in key-value pairs format. The environment variables specified at the job level are default values for each execution. The environment variables specified at the execution level have higher priority. You can specify environment variables when you start an execution to override the value at the job level. |
51+
| Secret environment variables | Job/Execution | Variables that contain credentials where the secret values are encrypted. |
52+
| CPU | Job/Execution | The value specified for the execution overrides the value specified for the job. |
53+
| Memory | Job/Execution | The value specified for the execution overrides the value specified for the job. |
54+
55+
The configuration at the job level applies when creating or updating the job resource. The configuration at the job execution level applies when starting a job execution.
56+
57+
## Next step
58+
59+
[How to manage and use jobs in the Azure Spring Apps Enterprise plan](how-to-manage-job.md)

0 commit comments

Comments
 (0)