-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow calling
Actor.reboot()
from migrating handler, align reb…
…oot behavior with JS SDK (#361) This fixes several issues with the `Actor.reboot()` behavior: - `Actor.reboot()` waits for all event handlers to finish, but if itself it was called in an event handler, it would be waiting for itself, getting into a deadlock - `Actor.reboot()` in the JS SDK triggers event handlers for the `migrating` and `persistState` events, but in the Python SDK it was triggering only the `persistState` handlers This aligns the behavior to work like the JS SDK, and prevents reboot getting into an infinite loop by allowing it to be called only once. Related PR in JS SDK: apify/apify-sdk-js#345
- Loading branch information
Showing
4 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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