Skip to content

PPE method calculateMaxEventChargeCountWithinLimit hangs the container forever in private actor #434

@DeNice-r

Description

@DeNice-r

Issue description

  1. Fully setup the actor with PPE but don't publish it. (never tested on a published actor to not expose the issue to real users)
  2. Use calculateMaxEventChargeCountWithinLimit method
  3. Deploy the actor (it works as expected locally)
  4. Run the actor

The exact line below causes my actor to hang forever. It also seems to use a lot more resources than usually at first but then usage goes flat and it just silently does nothing until I abort it.

Code sample

const maxChargeLimit = Actor.getChargingManager().calculateMaxEventChargeCountWithinLimit('result-item');

Package version

3.4.4

Node.js version

Whichever this image has https://hub.docker.com/r/apify/actor-node (again - no issues locally), but my local version is 22.9.0. Typescript - 5.9.2

Operating system

Apify docker

Actor or run link

Cant share it unfortunately. It has tokens in it.

I have tested this on the next release

No response

Other context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions