Sha256: d7324762995667aa9beb1c786e2ca94f2dff521901ae672ad05769ed75eb6255

Contents?: true

Size: 404 Bytes

Versions: 10

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

10 entries across 10 versions & 1 rubygems

Version Path
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
strongmind-platform-sdk-3.21.0 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.20.3 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.20.2 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.20.1 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.20.0 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.19.40 lib/platform_sdk/sidekiq.rb
strongmind-platform-sdk-3.19.39 lib/platform_sdk/sidekiq.rb