Skip to content

Commit 470c191

Browse files
Merge pull request #245884 from williamzhao87/williamzhao/update-jr-qs
Update JR quickstart
2 parents c15bbd0 + a0e704e commit 470c191

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

articles/communication-services/quickstarts/router/includes/router-quickstart-java.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ We should get a [RouterWorkerOfferIssued][offer_issued_event] from our [Event Gr
175175
However, we could also wait a few seconds and then query the worker directly against the JobRouter API to see if an offer was issued to it.
176176

177177
```java
178-
Thread.sleep(3000);
178+
Thread.sleep(10000);
179179
worker = routerClient.getWorker(worker.getId());
180180
for (RouterJobOffer offer : worker.getOffers()) {
181181
System.out.printf("Worker %s has an active offer for job %s\n", worker.getId(), offer.getJobId());

articles/communication-services/quickstarts/router/includes/router-quickstart-javascript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ We should get a [RouterWorkerOfferIssued][offer_issued_event] from our [Event Gr
141141
However, we could also wait a few seconds and then query the worker directly against the JobRouter API to see if an offer was issued to it.
142142

143143
```javascript
144-
await new Promise(r => setTimeout(r, 3000));
144+
await new Promise(r => setTimeout(r, 10000));
145145
worker = await routerClient.getWorker(worker.id);
146146
for (const offer of worker.offers) {
147147
console.log(`Worker ${worker.id} has an active offer for job ${offer.jobId}`);

articles/communication-services/quickstarts/router/includes/router-quickstart-net.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ We should get a [RouterWorkerOfferIssued][offer_issued_event] from our [Event Gr
128128
However, we could also wait a few seconds and then query the worker directly against the JobRouter API to see if an offer was issued to it.
129129

130130
```csharp
131-
await Task.Delay(TimeSpan.FromSeconds(3));
131+
await Task.Delay(TimeSpan.FromSeconds(10));
132132
worker = await routerClient.GetWorkerAsync(worker.Value.Id);
133133
foreach (var offer in worker.Value.Offers)
134134
{

articles/communication-services/quickstarts/router/includes/router-quickstart-python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ We should get a [RouterWorkerOfferIssued][offer_issued_event] from our [Event Gr
157157
However, we could also wait a few seconds and then query the worker directly against the JobRouter API to see if an offer was issued to it.
158158

159159
```python
160-
time.sleep(3)
160+
time.sleep(10)
161161
worker = router_client.get_worker(worker_id = worker.id)
162162
for offer in worker.offers:
163163
print(f"Worker {worker.id} has an active offer for job {offer.job_id}")

0 commit comments

Comments
 (0)