Skip to content

Commit 58be585

Browse files
committed
updates
1 parent 50afa09 commit 58be585

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/app-service/webjobs-execution.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@ ms.collection: ce-skilling-ai-copilot
1111

1212
# How WebJobs run in Azure App Service
1313

14-
Azure WebJobs allow you to run background tasks within your App Service app, without needing separate infrastructure. These tasks are discovered and managed by the **Kudu engine**, which handles execution, monitoring, and log collection.
14+
Azure WebJobs allow you to run background tasks within your App Service app, without needing separate infrastructure. These tasks are discovered and managed by the Kudu engine, the built-in App Service deployment and runtime management service. Kudu handles WebJob execution, file system access, diagnostics, and log collection behind the scenes.
1515

1616
This article explains how WebJobs are discovered, how the runtime decides what to execute, and how you can configure behavior using the optional `settings.job` file.
1717

1818
## Platform-specific notes
1919

2020
[!INCLUDE [webjob-types](./includes/webjobs-create/webjob-types.md)]
2121

22-
[!INCLUDE [webjobs-always-on-note](../../includes/webjobs-always-on-note.md)]
22+
[!IMPORTANT]
23+
> WebJobs that are continuous, scheduled, or event-driven may stop running if the web app hosting them becomes idle. Web apps can time out after 20 minutes of inactivity, and only direct requests to the app reset this idle timer. Actions like viewing the portal or accessing the Kudu tools do not keep the app active.
24+
> To ensure WebJobs run reliably, enable the Always on setting in the Configuration pane of your App Service.
25+
> This setting is available only in the Basic, Standard, and Premium pricing tiers.
2326
2427
## Job discovery and folder structure
2528

@@ -41,10 +44,7 @@ Inside the job folder, the Kudu engine looks for a file to execute. This file ca
4144

4245
The WebJobs runtime uses a file named `run.*` (such as `run.py`, `run.sh`, or `run.js`) as the explicit entry point for a job. This file tells the platform which script or binary to execute first, ensuring consistent and predictable behavior across environments.
4346

44-
> [!NOTE]
45-
> The filename must be exactly `run.*` to be autodetected. Files like `start.sh` or `job.py` will be ignored unless manually triggered.
46-
47-
If no `run.*` file is found, the platform attempts to detect a fallback entry point by selecting the first supported file based on the language platform of the WebJob. For example:
47+
The filename must be exactly `run.*` to be autodetected. Files like `start.sh` or `job.py` will be ignored unless manually triggered. If no `run.*` file is found, the platform attempts to detect a fallback entry point by selecting the first supported file based on the language platform of the WebJob. For example:
4848
- A Python WebJob with multiple `.py` files (for example, `file1.py`, `file2.py`) will execute the first `.py` file it finds in the archive.
4949
- A Node.js WebJob looks for the first `.js` file.
5050
- A Bash-based WebJob looks for the first `.sh` script.

0 commit comments

Comments
 (0)