feat: Prevent overloading system memory when running locally by janbuchar · Pull Request #1270 · apify/crawlee-python

@janbuchar

@janbuchar

@janbuchar janbuchar added the t-tooling

Issues with this label are in the ownership of the tooling team.

label

Jun 25, 2025

janbuchar

janbuchar

@janbuchar

@janbuchar

Pijukatel

current_size: ByteSize
"""Memory usage of the current Python process and its children."""

system_wide_used_size: ByteSize | None

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe these two new values can have default None, I saw it is anyway initialized with None both in code and test

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I already updated all the call sites... and I'd need to reorder the fields in the dataclass ☹️ I'd prefer to leave it this way.

vdusek

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@janbuchar

@janbuchar

Pijukatel

@janbuchar janbuchar deleted the autoscaling-memory-failsafe branch

July 17, 2025 09:44