fix cleanup naming: use getattr for pydantic model parameters
prefect.runtime.flow_run.parameters returns validated pydantic objects
(not raw dicts) when FlowRunContext is active. RetentionConfig has no
.get() method — use getattr instead.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>