Skip to content

Commit

Permalink
fix(request-queue): Stress out the locking mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
drobnikj committed Dec 6, 2024
1 parent df52238 commit dee9669
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sources/platform/storage/request_queue.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,15 @@ If the Actor processing the request fails, the lock expires, and the request is

In the following example, we demonstrate how we can use locking mechanisms to avoid concurrent processing of the same request across multiple Actor runs.

:::info
The lock mechanism works on the client level, as well as the run level, when running the Actor on the Apify platform.

This means you can unlock or prolong the lock the locked request only if:

1. You are using the same client key, or
2. The operation is being called from the same Actor run.
:::

<Tabs groupId="main">
<TabItem value="Actor 1" label="Actor 1">

Expand Down

0 comments on commit dee9669

Please sign in to comment.