class DataRetentionJob

Prunes old application data to keep the database from growing unbounded. Runs daily in production.

After the cascade FK migration, execution_histories can be deleted without worrying about orphaned steps or locks. TableLock.reap_stale! runs first to clean up any stale locks before the main pruning pass.