Conversation
Co-authored-by: Vlada Dusek <v.dusek96@gmail.com>
Contributor
Author
There should now be a form in the console, so I think it's not necessary anymore 🙂 |
Pijukatel
reviewed
Mar 7, 2025
Contributor
Pijukatel
left a comment
There was a problem hiding this comment.
There are several chunks on commented out code in the .jsx files. What is the point of adding it?
vdusek
approved these changes
Mar 7, 2025
Comment on lines
+26
to
+30
| If you need finer control over charging, you can access call <ApiLink to="class/Actor#get_charging_manager">`Actor.get_charging_manager()`</ApiLink> to access the <ApiLink to="class/ChargingManager">`ChargingManager`</ApiLink>, which can provide more detailed information - for example how many events of each type can be charged before reaching the configured limit. | ||
|
|
||
| ## Transitioning from a different pricing model | ||
|
|
||
| When you plan to start using the pay-per-event pricing model for an Actor that is already monetized with a different pricing model, your source code will need support both pricing models during the transition period enforced by the Apify platform. Arguably the most frequent case is the transition from the pay-per-result model which utilizes the `ACTOR_MAX_PAID_DATASET_ITEMS` environment variable to prevent returning unpaid dataset items. The following is an example how to handle such scenarios. The key part is the <ApiLink to="class/ChargingManager#get_pricing_info">`ChargingManager.get_pricing_info`</ApiLink> method which returns information about the current pricing model. |
Contributor
There was a problem hiding this comment.
Actor.get_charging_manager()- bracketsChargingManager.get_pricing_info- no brackets
Could you unify it?
Contributor
Author
No idea, I just copied it. Removed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Actor.chargedocs from JS SDK #414