Skip to content

Commit bb1ae1e

Browse files
Update scheduled-jobs.md
1 parent 87d49ce commit bb1ae1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/communication-services/how-tos/router-sdk/scheduled-jobs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Create a scheduled job for Azure Communication Services
33
titleSuffix: An Azure Communication Services how-to guide
4-
description: Use Azure Communication Services Job Router SDK to create a scheduled job
4+
description: Use Azure Communication Services Job Router SDK to create a scheduled job.
55
author: williamzhao
66
manager: bga
77
services: azure-communication-services
@@ -30,7 +30,7 @@ In the context of a call center, customers may want to receive a scheduled callb
3030

3131
## Create a job using the ScheduleAndSuspendMode
3232

33-
In the following example, a job is created that is scheduled 3 minutes from now by setting the `MatchingMode` to `ScheduleAndSuspendMode` with a `scheduleAt` parameter. This example assumes that you [created a queue](manage-queue.md) with the queueId `Callback` and that there's an active [worker registered](../../concepts/router/matching-concepts.md) to the queue with available capacity on the `Voice` channel.
33+
In the following example, a job is created that is scheduled 3 minutes from now by setting the `MatchingMode` to `ScheduleAndSuspendMode` with a `scheduleAt` parameter. This example assumes that you [created a queue](manage-queue.md) with the queueId `Callback` and that there's an active [worker registered](../../concepts/router/matching-concepts.md) to the queue with available capacity on the `Voice` channel.
3434

3535
::: zone pivot="programming-language-csharp"
3636

@@ -87,7 +87,7 @@ client.createJob(new CreateJobOptions("job1", "Voice", "Callback")
8787
8888
## Wait for the scheduled time to be reached, then queue the job
8989

90-
When the scheduled time is reached, the job's status is updated to `WaitingForActivation` and Job Router emits a [RouterJobWaitingForActivation event](subscribe-events.md#microsoftcommunicationrouterjobwaitingforactivation) to Event Grid. If this event is subscribed, some required actions may be performed, before enabling the job to be matched to a worker. For example, in the context of the contact center, such an action could be making an outbound call and waiting for the customer to accept the callback. Once the required actions are complete, the job can be queued by calling the `UpdateJobAsync` method with the `MatchingMode` set to `QueueAndMatchMode` and priority set to `100` to quickly find an eligible worker, which updates the job's status to `queued`.
90+
When the scheduled time is reached, the job's status is updated to `WaitingForActivation` and Job Router emits a [RouterJobWaitingForActivation event](subscribe-events.md#microsoftcommunicationrouterjobwaitingforactivation) to Event Grid. If this event is subscribed, some required actions may be performed, before enabling the job to be matched to a worker. For example, in the context of the contact center, such an action could be making an outbound call and waiting for the customer to accept the callback. Once the required actions are complete, the job can be queued by calling the `UpdateJobAsync` method with the `MatchingMode` set to `QueueAndMatchMode` and priority set to `100` to quickly find an eligible worker, which updates the job's status to `queued`.
9191

9292
::: zone pivot="programming-language-csharp"
9393

0 commit comments

Comments
 (0)