Skip to content

Commit 05115eb

Browse files
committed
feat: add time_remaining_secs property to MIGRATING event data
1 parent ae0d328 commit 05115eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/crawlee/events/_types.py

+4
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ class EventMigratingData(BaseModel):
5959

6060
model_config = ConfigDict(populate_by_name=True)
6161

62+
# The remaining time in seconds before the migration is forced and the process is killed
63+
# Optional because it's not present when the event handler is called manually
64+
time_remaining_secs: Annotated[float | None, Field(alias='timeRemainingSecs')]
65+
6266

6367
@docs_group('Event payloads')
6468
class EventAbortingData(BaseModel):

0 commit comments

Comments
 (0)