Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

Commit 7a5858a

Browse files
authored
fix: correctly document RQv2 /head/lock limits (#98)
1 parent 8ab88cd commit 7a5858a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

openapi/paths/request-queues/request-queues@{queueId}@[email protected]

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ post:
2525
example: WkzbQMuFYuamGv3YF
2626
- name: lockSecs
2727
in: query
28-
description: How long the second request will be locked for.
28+
description: How long the requests will be locked for (in seconds).
2929
required: true
3030
style: form
3131
explode: true
@@ -41,7 +41,8 @@ post:
4141
schema:
4242
type: number
4343
format: double
44-
example: 100
44+
example: 25
45+
maximum: 25
4546
- name: clientKey
4647
in: query
4748
description: |
@@ -63,7 +64,7 @@ post:
6364
- $ref: ../../components/schemas/request-queues/GetHeadAndLockResponse.yaml
6465
- example:
6566
data:
66-
limit: 1000
67+
limit: 3
6768
queueModifiedAt: '2018-03-14T23:00:00.000Z'
6869
hadMultipleClients: true
6970
lockSecs: 60
@@ -88,7 +89,7 @@ post:
8889
lockExpiresAt: '2022-06-14T23:00:00.000Z'
8990
example:
9091
data:
91-
limit: 1000
92+
limit: 3
9293
queueModifiedAt: '2018-03-14T23:00:00.000Z'
9394
hadMultipleClients: true
9495
lockSecs: 60

0 commit comments

Comments
 (0)