Sha256: 6b8031103e6329acf2f8a53c3b598e1290a272561247dd2bdc65909cd5304f7b

Contents?: true

Size: 655 Bytes

Versions: 11

Compression:

Stored size: 655 Bytes

Contents

Inferno::Application.boot(:validator) do
  init do
    use :suites

    # This process should only run once, to start one job per validator,
    # so skipping it on workers will start it only once from the "web" process
    next if Sidekiq.server?

    Inferno::Repositories::TestSuites.new.all.each do |suite|
      suite.fhir_validators.each do |name, validators|
        validators.each_with_index do |validator, index|
          if validator.is_a? Inferno::DSL::FHIRResourceValidation::Validator
            Inferno::Jobs.perform(Inferno::Jobs::InvokeValidatorSession, suite.id, name.to_s, index)
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
inferno_core-0.4.33 lib/inferno/config/boot/validator.rb
inferno_core-0.4.32 lib/inferno/config/boot/validator.rb
inferno_core-0.4.31 lib/inferno/config/boot/validator.rb
inferno_core-0.4.30 lib/inferno/config/boot/validator.rb
inferno_core-0.4.29 lib/inferno/config/boot/validator.rb
inferno_core-0.4.28 lib/inferno/config/boot/validator.rb
inferno_core-0.4.27 lib/inferno/config/boot/validator.rb
inferno_core-0.4.26 lib/inferno/config/boot/validator.rb
inferno_core-0.4.25 lib/inferno/config/boot/validator.rb
inferno_core-0.4.24 lib/inferno/config/boot/validator.rb
inferno_core-0.4.23 lib/inferno/config/boot/validator.rb