Skip to content

feat: add Actor.start_task to start task without waiting for it to finish - #1164

Merged
vdusek merged 7 commits into
masterfrom
feat/start-task
Oct 8, 2026
Merged

vdusek merged 7 commits into
masterfrom
feat/start-task

Conversation

@vdusek

@vdusek vdusek commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Adds Actor.start_task(), which starts an Actor task and returns the run without waiting for it to finish. Until now that meant calling Actor.apify_client.task(task_id).start() directly and losing what the wrapper adds: the token shortcut, timeout='inherit' and webhook conversion.

It takes the same parameters as call_task() except wait. The concepts guide gets a matching "Actor start task" section.

Closes: #1161

JS parity issue: apify/apify-sdk-js#764

✍️ Drafted by Claude Code

@vdusek vdusek added the t-tooling Issues with this label are in the ownership of the tooling team. label Oct 7, 2026
@vdusek vdusek self-assigned this Oct 7, 2026
@codecov

codecov Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.90%. Comparing base (b13c696) to head (85c9d54).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1164      +/-   ##
==========================================
+ Coverage   92.87%   92.90%   +0.03%     
==========================================
  Files          53       53              
  Lines        3549     3554       +5     
==========================================
+ Hits         3296     3302       +6     
+ Misses        253      252       -1     
Flag Coverage Δ
e2e 32.80% <40.00%> (+0.01%) ⬆️
integration 53.29% <40.00%> (+<0.01%) ⬆️
unit 89.50% <100.00%> (+0.01%) ⬆️

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.

@vdusek
vdusek requested review from Mantisus and barjin October 7, 2026 09:20
@vdusek
vdusek marked this pull request as ready for review October 7, 2026 09:21
@vdusek
vdusek requested a review from szaganek as a code owner October 7, 2026 09:21
@apify-service-account apify-service-account added the tested Temporary label used only programatically for some analytics. label Oct 7, 2026
@vdusek vdusek changed the title feat: add Actor.start_task() feat: add Actor.start_task() to start an Actor task without waiting for it to finish Oct 7, 2026

@Mantisus Mantisus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

Comment thread src/apify/_actor.py Outdated

@apify-approval-mirror apify-approval-mirror Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Mirroring approval from @Mantisus.

@apify-approval-mirror apify-approval-mirror Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Mirroring approval from @Mantisus.

@vdusek vdusek changed the title feat: add Actor.start_task() to start an Actor task without waiting for it to finish feat: add Actor.start_task to start task without waiting for it to finish Oct 8, 2026
@vdusek
vdusek merged commit b90a8f4 into master Oct 8, 2026
31 checks passed
@vdusek
vdusek deleted the feat/start-task branch October 8, 2026 07:02
@vdusek vdusek mentioned this pull request Oct 8, 2026
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 Actor.start_task()

3 participants