apify-sdk-python
apify-sdk-python copied to clipboard
Synchronize `Actor.charge` calls to prevent race conditions in `Actor.push_data`
- calls to
ChargingManager.chargeshould be safe because the "critical section" does not yield - however, when calling PPE-aware
Actor.push_datathere might be some interleaving of thepush_dataandchargeAPI calls that may lead to unintended behavior - it would probably be best to hold all
Actor.chargecalls if there is anActor.push_datain progress