Skip to content

feat: Implement charge() for multi-tenant Server Actors - #1211

Open
janbuchar wants to merge 1 commit into
masterfrom
multi-tenant-charge
Open

janbuchar wants to merge 1 commit into
masterfrom
multi-tenant-charge

Conversation

@janbuchar

Copy link
Copy Markdown
Contributor

@janbuchar janbuchar added the t-tooling Issues with this label are in the ownership of the tooling team. label Oct 29, 2026
@janbuchar
janbuchar requested a review from szaganek as a code owner October 29, 2026 16:30
@janbuchar
janbuchar requested review from Pijukatel and vdusek October 29, 2026 16:30
@apify-service-account apify-service-account added the tested Temporary label used only programatically for some analytics. label Oct 29, 2026
Comment on lines +294 to +299
response = await http.put(
f'{api_url}/v2/acts/{actor.id}',
headers={**auth, 'Content-Type': 'application/json'},
content=json.dumps({'actorStandby': {'isEnabled': True, 'tenancy': 'MULTI_TENANT'}}),
)
assert response.status_code == 200, response.text

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This will be better after apify/apify-client-python#1169

@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.90909% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.40%. Comparing base (4ff9c35) to head (04e8333).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
src/apify/_charging.py 90.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1211      +/-   ##
==========================================
+ Coverage   93.25%   93.40%   +0.14%     
==========================================
  Files          54       54              
  Lines        3766     3789      +23     
==========================================
+ Hits         3512     3539      +27     
+ Misses        254      250       -4     
Flag Coverage Δ
e2e ?
integration 51.17% <27.27%> (-0.24%) ⬇️
unit 90.26% <90.90%> (+0.16%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for the request_id param in Actor.charge()

2 participants