lib/katello/tasks/pulp3_migration.rake in katello-4.0.0.rc2 vs lib/katello/tasks/pulp3_migration.rake in katello-4.0.0.rc3

- old
+ new

@@ -1,14 +1,18 @@ namespace :katello do desc "Runs a Pulp 2 to 3 Content Migration for supported types. May be run multiple times. Use wait=false to immediately return with a task url." - task :pulp3_migration => ["dynflow:client", "check_ping"] do + task :pulp3_migration => ["dynflow:client"] do + services = [:candlepin, :foreman_tasks, :pulp3, :pulp, :pulp_auth] + Katello::Ping.ping!(services: services) + puts "Starting task." SmartProxy.pulp_primary.refresh reimport_all = ::Foreman::Cast.to_bool(ENV['reimport_all']) wait = ::Foreman::Cast.to_bool(ENV['wait'] || 'true') preserve_output = ::Foreman::Cast.to_bool(ENV['preserve_output']) + User.current = User.anonymous_api_admin task = ForemanTasks.async_task(Actions::Pulp3::ContentMigration, SmartProxy.pulp_primary, reimport_all: reimport_all) if wait clear_count = nil until !task.pending? || task.paused?