Skip to content

feat: add Actor.startTask to start task without waiting for it to finish - #775

Merged
vdusek merged 2 commits into
masterfrom
feat/start-task
Oct 13, 2026
Merged

vdusek merged 2 commits into
masterfrom
feat/start-task

Conversation

@vdusek

@vdusek vdusek commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Adds Actor.startTask(taskId, input?, options?), both as an instance and a static method, next to callTask(). It starts a task run and returns it without waiting for it to finish. Until now that meant calling Actor.apifyClient.task(taskId).start() and losing the wrapper's token shortcut and timeout: 'inherit'.

The new StartTaskOptions is the client's TaskStartOptions minus waitForFinish and runTimeoutSecs, plus Token and Timeout, the same way StartOptions is built for start().

Python counterpart: apify/apify-sdk-python#1164.

Closes: #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 13, 2026
@vdusek vdusek self-assigned this Oct 13, 2026
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

⚠️ There are broken links in the documentation.

See more at https://github.com/apify/apify-sdk-js/actions/runs/38374765616#summary-115220267546

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

@barjin barjin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, thank you @vdusek !

@vdusek
vdusek merged commit 8ad518a into master Oct 13, 2026
9 checks passed
@vdusek
vdusek deleted the feat/start-task branch October 13, 2026 13:15
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.startTask()

3 participants