Rake task for trainer process