Repository navigation
feat: support named child runs that survive migration and resurrection #759
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
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
187354e
feat: resumable `start` and `call` implementions
barjin 30114ed
fix: do not resume child runs that are aborting or timing out
barjin 075b9f7
refactor: move ChildRunTracker to its own file
barjin c3c0718
feat: reject reusing a child run name for a different request in one …
barjin 3162daa
feat: resurrect aborted child runs and expose tracked child runs via …
barjin 81815f2
refactor: start a new child run instead of resurrecting aborted or ti…
barjin a337bb0
docs: describe the public ChildRunTracker methods
barjin c9922a1
style: use multiline jsdoc for ChildRunTracker methods
barjin 1940b86
refactor: simplify child run tracking
barjin 7751f4c
feat: persist the child run request checksum so the name check surviv…
barjin f4cfdc4
docs: extend the JSDoc for the `runName` option
barjin 29f7d13
fix: clear `trackedRuns` cache on a KVS load error
barjin ca71dd2
fix: add a per-name mutex for named run start and tracking
barjin 677379e
fix: checksum the serialized child run request
barjin aebd5a4
refactor: store tracked child runs under the `__ACTOR_CHILD_RUNS` key
barjin 37193a0
refactor: split off the child run specific tests into a separate file
barjin 1a9dbe7
chore: improve test naming
barjin bb4d73f
chore: use the `ReentrantAsyncLock` class instead of a custom lock im…
barjin 2e974c6
chore: fix lint error
barjin 452d7f6
docs: document the `LOST` runs better
barjin a76459d
chore: lock apify-client version
barjin bd8ec9a
Merge branch 'master' into feat/track-child-runs
barjin c83bcc6
chore: fix failing build
barjin 8143fd7
feat: expose tracked child runs as a synchronous `Actor.childRuns` ge…
barjin 476b800
chore: address nits
barjin ec5e6fa
fix: forward `signal` and `timeoutSecs` in named `call` and `callTask`
barjin 56034c3
Merge remote-tracking branch 'origin/master' into feat/track-child-runs
barjin be2e911
feat: resurrect aborted and timed out child runs instead of replacing…
barjin 0741f7e
docs: clarify that a replaced child run accepts a different input
barjin 68d44f2
fix: look a missing child run up again before treating it as lost
barjin 9b52b8b
feat: support `runName` in `Actor.startTask()`
barjin d6be7e8
feat: validate the stored child runs when loading them
barjin a1a5ef7
test: add an e2e test for reattaching and resurrecting named child ru…
barjin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.