Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions packages/basic-crawler/src/internals/basic-crawler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1550,13 +1550,9 @@ export class BasicCrawler<Context extends CrawlingContext = BasicCrawlingContext
this.crawlingContexts.delete(crawlingContext.id);

// Safety net - release the lock if nobody managed to do it before
if (isRequestLocked && source instanceof RequestProvider) {
try {
await source.client.deleteRequestLock(request.id!);
} catch {
// We don't have the lock, or the request was never locked. Either way it's fine
}
}
// Removed manual deleteRequestLock as this should be handled by markRequestHandled()
// See: https://github.com/apify/crawlee/issues/2840

}
}

Expand Down