File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Original file line number Diff line number Diff line change @@ -598,7 +598,8 @@ The following events can be emitted:
598
598
* ActorEventTypes.MIGRATING :
599
599
600
600
Emitted when the actor running on the Apify platform is going to be migrated to another worker server soon.
601
- You can use it to persist the state of the actor and abort the run, to speed up the migration.
601
+ You can use it to persist the state of the actor and gracefully stop your in - progress tasks,
602
+ so that they are not interrupted by the migration..
602
603
603
604
* ActorEventTypes.PERSIST_STATE :
604
605
Original file line number Diff line number Diff line change @@ -681,7 +681,8 @@ def on(cls, event_name: ActorEventTypes, listener: Callable) -> Callable:
681
681
Emitted every minute, the event data contains info about the resource usage of the actor.
682
682
- `ActorEventTypes.MIGRATING`:
683
683
Emitted when the actor running on the Apify platform is going to be migrated to another worker server soon.
684
- You can use it to persist the state of the actor and abort the run, to speed up the migration.
684
+ You can use it to persist the state of the actor and gracefully stop your in-progress tasks,
685
+ so that they are not interrupted by the migration..
685
686
- `ActorEventTypes.PERSIST_STATE`:
686
687
Emitted in regular intervals (by default 60 seconds) to notify the actor that it should persist its state,
687
688
in order to avoid repeating all work when the actor restarts.
You can’t perform that action at this time.
0 commit comments