clean_installed_packages script will not exit after foreign key error
In http://projects.theforeman.org/issues/20946, we tried to make the clean_installed_packages script more resilient against foreign key errors. However, there is a bug that causes the script to keep increasing its batch size without removing old entries from its query, so problematic keys never get taken off the list.
Fixes #21080 - exit out after foreign key error
Previously, we attempted to gracefully handle foreign key errors that
usually are caused by client checkins during the cleanup script's run.
This "graceful" handling had a bug that caused it to error on every
Instead, simply exit and tell the user to re-run the script.