Sha256: d7324762995667aa9beb1c786e2ca94f2dff521901ae672ad05769ed75eb6255

Contents?: true

Size: 404 Bytes

Versions: 27

Compression:

Stored size: 404 Bytes

Contents

require 'sidekiq'
require 'sidekiq/cloud_watch_metrics'

module PlatformSdk
  module Sidekiq

    def self.send_metrics_to_cloudwatch!
      ::Sidekiq::CloudWatchMetrics.enable!
    end

    def self.configure_task_protection
      ::Sidekiq.configure_server do |config|
        config.server_middleware do |chain|
          chain.add EcsTaskProtectionMiddleware
        end
      end
    end

  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
strongmind-platform-sdk-3.25.0 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.24.0 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.23.7 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.23.6 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.23.5 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.23.4 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.23.3 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.23.2 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.23.1 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.23.0 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.22.1 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.22.0 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.21.8 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.21.7 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.21.6 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.21.5 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.21.4 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.21.3 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.21.2 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.21.1 lib/platform_sdk/sidekiq.rb