Upgrade step correct_repositories failed

Not all the services have been started. Check the status report above and try again.
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5/lib/katello/tasks/reimport.rake:10:in `block (2 levels) in <top (required)>'
Tasks: TOP => katello:correct_repositories => katello:check_ping
(See full trace by running task with --trace)
{:services=>
  {:pulp=>{:status=>"ok", :duration_ms=>"71"},
   :pulp_auth=>{:status=>"ok", :duration_ms=>"57"},
   :candlepin=>{:status=>"ok", :duration_ms=>"48"},
   :candlepin_auth=>{:status=>"ok", :duration_ms=>"62"},
   :foreman_tasks=>
    {:status=>"FAIL",
     :message=>
      "some executors are not responding, check /foreman_tasks/dynflow/status"}},
 :status=>"FAIL"}
foreman-rake katello:correct_repositories COMMIT=true failed! Check the output for error!
Upgrade step correct_repositories failed. Check logs for more information.

Got this error upgrading Redhat Satellite from 6.1 to 6.2

Service foreman_tasks was running.

Fixed this check by rising the timeout;

/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.171/app/models/katello/ping.rb

     if services.include?(:foreman_tasks)
      exception_watch(result[:services][:foreman_tasks]) do

        timeout   = 10