Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feat/child-runs-api #1153 +/- ##
=======================================================
+ Coverage 93.13% 93.24% +0.10%
=======================================================
Files 54 54
Lines 3688 3744 +56
=======================================================
+ Hits 3435 3491 +56
Misses 253 253
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
vdusek
force-pushed
the
feat/abort-child-runs-with-parent
branch
from
October 6, 2026 13:20
9554a97 to
1782ca6
Compare
This branch has not been deployed
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.
Stacked on #1151.
Adds
abort_with_parenttoActor.start,Actor.callandActor.call_task. It's off by default and needsrun_name. The flag is stored with the name in the child run registry, so a parent that migrated or was resurrected still knows which children to abort. The latest call under a name sets the value.The SDK registers its own
ABORTINGlistener onApifyEventManagerwhen the Actor context starts. It's kept apart from user listeners, sooff()without a listener doesn't remove it. On a graceful abort, it gracefully aborts every flagged child that's stillREADYorRUNNING, all in parallel. If one abort fails, the error is logged and the others go ahead. Each child is aborted with the client it was started with in this process, which matters when a customtokenwas passed. A child from before a migration uses the default client.ChildRunInfonow exposes the flag too.A hard abort, a timeout or an OOM kill still leaves the children running. Covering that needs a parent/child link on the platform.
Closes: #1128
✍️ Drafted by Claude Code