Sha256: 36c1fea67fee6f04df319bf04bf618051c5dd1e346f3692bf28d0b255f74173e

Contents?: true

Size: 931 Bytes

Versions: 24

Compression:

Stored size: 931 Bytes

Contents

module Actions
  module Pulp3
    module CapsuleContent
      class Sync < Pulp3::AbstractAsyncTask
        def plan(repository, smart_proxy, options = {})
          sequence do
            plan_self(:repository_id => repository.id, :smart_proxy_id => smart_proxy.id, :options => options)
            plan_action(GenerateMetadata, repository, smart_proxy, options)
          end
        end

        def invoke_external_task
          repo = ::Katello::Repository.find(input[:repository_id])
          output[:pulp_tasks] = repo.backend_service(smart_proxy).with_mirror_adapter.sync
        end

        def rescue_strategy_for_self
          # There are various reasons the syncing fails, not all of them are
          # fatal: when fail on syncing, we continue with the task ending up
          # in the warning state, but not locking further syncs
          Dynflow::Action::Rescue::Skip
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
katello-3.17.0.rc1 app/lib/actions/pulp3/capsule_content/sync.rb
katello-3.16.0 app/lib/actions/pulp3/capsule_content/sync.rb
katello-3.16.0.rc5.1 app/lib/actions/pulp3/capsule_content/sync.rb
katello-3.16.0.rc5 app/lib/actions/pulp3/capsule_content/sync.rb
katello-3.16.0.rc4.1 app/lib/actions/pulp3/capsule_content/sync.rb
katello-3.15.3.1 app/lib/actions/pulp3/capsule_content/sync.rb
katello-3.15.3 app/lib/actions/pulp3/capsule_content/sync.rb
katello-3.16.0.rc4 app/lib/actions/pulp3/capsule_content/sync.rb
katello-3.16.0.rc3.1 app/lib/actions/pulp3/capsule_content/sync.rb
katello-3.15.2 app/lib/actions/pulp3/capsule_content/sync.rb
katello-3.16.0.rc3 app/lib/actions/pulp3/capsule_content/sync.rb
katello-3.16.0.rc2.1 app/lib/actions/pulp3/capsule_content/sync.rb
katello-3.16.0.rc2 app/lib/actions/pulp3/capsule_content/sync.rb
katello-3.15.1.1 app/lib/actions/pulp3/capsule_content/sync.rb
katello-3.16.0.rc1.1 app/lib/actions/pulp3/capsule_content/sync.rb
katello-3.15.1 app/lib/actions/pulp3/capsule_content/sync.rb
katello-3.16.0.rc1 app/lib/actions/pulp3/capsule_content/sync.rb
katello-3.15.0.1 app/lib/actions/pulp3/capsule_content/sync.rb
katello-3.15.0 app/lib/actions/pulp3/capsule_content/sync.rb
katello-3.15.0.rc2 app/lib/actions/pulp3/capsule_content/sync.rb