Skip to content

Commit efb363d

Browse files
committed
Add note about when to delete message
1 parent 22cf638 commit efb363d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

articles/container-apps/tutorial-event-driven-jobs.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,16 @@ In this tutorial, you learn how to work with [event-driven jobs](jobs.md#event-d
2323
> * Deploy the job to the Container Apps environment
2424
> * Verify that the queue messages are processed by the container app
2525
26-
The job you create starts an execution for each message that is sent to an Azure Storage Queue. Each job execution runs a container that performs the following steps:
26+
The job you create starts an execution for each message that is sent to an Azure Storage queue. Each job execution runs a container that performs the following steps:
2727

28-
1. Dequeues one message from the queue.
28+
1. Gets one message from the queue.
2929
1. Logs the message to the job execution logs.
3030
1. Deletes the message from the queue.
3131
1. Exits.
3232

33+
> [!IMPORTANT]
34+
> The scaler monitors the queue's length to determine how many jobs to start. For accurate scaling, don't delete a message from the queue until the job execution has finished processing it.
35+
3336
The source code for the job you run in this tutorial is available in an Azure Samples [GitHub repository](https://github.com/Azure-Samples/container-apps-event-driven-jobs-tutorial/blob/main/index.js).
3437

3538
[!INCLUDE [container-apps-create-cli-steps-jobs.md](../../includes/container-apps-create-cli-steps-jobs.md)]

0 commit comments

Comments
 (0)