You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configuration instances are mutable, so code can change a setting after components have read it, for example configuration.purge_on_start = False. Crawlee JS v4 made Configuration immutable in apify/crawlee#3484.
Make it immutable in Python too, with frozen=True on the settings model. To change a setting, create a new instance with the value, or use model_copy(update=...).
Before the change, check:
The docs: 4 files in docs/ assign to a configuration attribute and need to create the instance with the value instead.
apify-sdk-python: its Configuration subclasses the Crawlee one (src/apify/_configuration.py) and must keep working when frozen.
Activity
refactor!: make `Configuration` immutable (#2555)
vdusek commentedon Dec 1, 2026
resolved by #2555