diff --git a/packages/apify/src/actor.ts b/packages/apify/src/actor.ts index 41f3c7275b..d83143d821 100644 --- a/packages/apify/src/actor.ts +++ b/packages/apify/src/actor.ts @@ -818,7 +818,12 @@ export class Actor { this._ensureActorInit('openRequestQueue'); - return this._openStorage(RequestQueue, queueIdOrName, options); + const queue = await this._openStorage(RequestQueue, queueIdOrName, options); + + // eslint-disable-next-line dot-notation + queue['initialCount'] = (await queue.client.get())?.totalRequestCount ?? 0; + + return queue; } /**