Skip to content

feat: add maxTotalChargeUsd param #1485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 5, 2025
Merged

Conversation

novotnyj
Copy link
Member

@novotnyj novotnyj commented Mar 4, 2025

The maxTotalChargeUsd param is missing in API doc. I've searched for ACTOR_MAX_PAID_DATASET_ITEMS and added info about maxTotalChargeUsd to all relevant places.

@novotnyj novotnyj requested a review from TC-MO as a code owner March 4, 2025 09:57
@github-actions github-actions bot added the t-c&c Team covering store and finance matters. label Mar 4, 2025
@novotnyj novotnyj requested a review from mhamas March 4, 2025 09:58
@novotnyj novotnyj added the adhoc Ad-hoc unplanned task added during the sprint. label Mar 4, 2025
Copy link
Contributor

@TC-MO TC-MO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small suggestions to phrasing & Actor capitalization in old API Blueprint descriptions. Otherwise LGTM

@novotnyj novotnyj requested a review from TC-MO March 4, 2025 10:34
Copy link
Contributor

@TC-MO TC-MO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One fix to capitalization & one clarification otherwise LGTM

Comment on lines +215 to +219
Specifies the maximum cost of the task run. This parameter is
useful for pay-per-event tasks, as it allows you to limit the amount
charged to your subscription. You can access the
maximum cost in your Actor by using the
`ACTOR_MAX_TOTAL_CHARGE_USD` environment variable.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we refer to it as pay-per-event task? Correct me if I'm wrong but only Actor can be pay-per-event and task inherently have no monetization but they can be comprised of Actors right?

Maybe something like:

Suggested change
Specifies the maximum cost of the task run. This parameter is
useful for pay-per-event tasks, as it allows you to limit the amount
charged to your subscription. You can access the
maximum cost in your Actor by using the
`ACTOR_MAX_TOTAL_CHARGE_USD` environment variable.
Specifies the maximum cost of the task run. This parameter is
useful when using pay-per-event Actors, as it allows you to limit the amount
charged to your subscription. You can access the
maximum cost in your Actor by using the
`ACTOR_MAX_TOTAL_CHARGE_USD` environment variable.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We say This is useful for pay-per-result tasks, for maxItems above so I've changed it to fit the context.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's leave it for now, but I might revisit it later.

Co-authored-by: Michał Olender <92638966+TC-MO@users.noreply.github.com>
Copy link
Contributor

@mhamas mhamas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@novotnyj novotnyj merged commit f5314ab into master Mar 5, 2025
7 checks passed
@novotnyj novotnyj deleted the feat/add-maxTotalChargeUsd branch March 5, 2025 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adhoc Ad-hoc unplanned task added during the sprint. t-c&c Team covering store and finance matters.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants