Skip to content

Commit 979c245

Browse files
committed
note
1 parent eb3e8c6 commit 979c245

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

articles/app-service/quickstart-webjobs.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,9 @@ dotnet
2929

3030
:::zone target="docs" pivot="python"
3131

32-
You can [download a pre-built sample project](https://github.com/Azure-Samples/App-Service-Python-WebJobs-QuickStart/archive/refs/heads/main.zip) to get started quickly.
32+
You can [download a pre-built sample project](https://github.com/Azure-Samples/App-Service-Python-WebJobs-QuickStart/archive/refs/heads/main.zip) to get started quickly. The sample includes two files: `webjob.py` and `run.sh`.
3333

34-
The sample includes two files that will run the WebJob: `webjob.py` and `run.sh`.
35-
36-
The Python script, `webjob.py`, that outputs the current time to the console as shown below:
34+
The Python script, `webjob.py`, outputs the current time to the console as shown below:
3735

3836
```Python
3937
import datetime
@@ -50,7 +48,7 @@ The file, `run.sh`, calls WebJob.py as shown below:
5048
```
5149

5250
> [!NOTE]
53-
> `run.sh` invokes the Python script. It's included in the .zip to show the flexibility of WebJobs. Depending on your project needs, you can also omit `run.sh` from your WebJob.
51+
> The platform uses `run.py` or `run.sh` as the entry point for the Python WebJobs. If neither is present, it defaults to the first `.py` file it finds in the archive, which can lead to unpredictable results—especially when multiple `.py` files are included.
5452
5553
:::zone-end
5654

@@ -95,11 +93,6 @@ php
9593

9694
[!INCLUDE [webjobs-cron-timezone-note](../../includes/webjobs-cron-timezone-note.md)]
9795

98-
### How the WebJob runs
99-
100-
When you deploy a scheduled WebJob to Azure App Service, the platform checks for a CRON schedule and runs the script at the specified time intervals. If `run.sh` or `run.py` is present, it's used as the entry point. Otherwise, the platform will use the first `.py` file it detects in the archive, which can lead to unpredictable results.
101-
102-
10396
## Review the WebJob logs
10497

10598

0 commit comments

Comments
 (0)