autoscale-queue-sidekiq 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2070c6987e6197fd0008dd099491dfb2bbfa471b6e760ac20001352beb57becd
4
- data.tar.gz: 972f14cd771d52e17ebe82341531a07082e254c2d303f44aabef4e0239f973d9
3
+ metadata.gz: f32459a0eb96ca94c85f402e10d092d38e6b9e43e0db5c425f61cbc05edd5fb0
4
+ data.tar.gz: a8b2d67a4fcd7a772a2b3bb78f59de6a352459138be17733510b99d456adebe4
5
5
  SHA512:
6
- metadata.gz: d3e89642192cdd2e1ca9e8be31a07ec25ece441dcc8f4d9691312acb97381cec80f17757eb648f3f24cefca73b9c8a667ac6162454d3d82b83e399a0f1070f41
7
- data.tar.gz: 2169f3b517a8c026d7a62383e72074f952878f4ae3ddf8c6b3b548cf3fea77f89b10ff8a5e0aa8f0832472c25af587192deeb2fcabe093579be3232a7f175351
6
+ metadata.gz: e2900b56db5a566c3cd215ec1377c707cf43916a7e3ea4dfa567d15a7af07a316ecb143a542a6f701f01c2830b2fbed5c0262829febfaf6170667a0551503450
7
+ data.tar.gz: d197c52e435dff29369c08f2b92f0958ff2b00d2251e7c782145d24887ceb40636af173da795434a4f2fd126968fb6b200385ce4ed1fff935cee6f5c2f7340cd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.0 - 2023-05-23
4
+
5
+ - Rename the latency function to job_queue_time
6
+
3
7
  ## 0.1.0 - 2023-03-03
4
8
 
5
9
  - Initial release
@@ -1,7 +1,7 @@
1
1
  module Autoscale
2
2
  module Queue
3
3
  module Sidekiq
4
- VERSION = "0.1.0".freeze
4
+ VERSION = "0.2.0".freeze
5
5
  end
6
6
  end
7
7
  end
@@ -5,12 +5,12 @@ require "sidekiq/api"
5
5
  module Autoscale
6
6
  module Queue
7
7
  module Sidekiq
8
- def latency(*queues)
8
+ def job_queue_time(*queues)
9
9
  queues = ::Sidekiq::Queue.all.map(&:name) if queues.empty?
10
10
  queues.map { |queue| ::Sidekiq::Queue.new(queue).latency }.max.round
11
11
  end
12
12
 
13
- module_function :latency
13
+ module_function :job_queue_time
14
14
  end
15
15
  end
16
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoscale-queue-sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael R. van Rooijen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-03 00:00:00.000000000 Z
11
+ date: 2023-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq
@@ -30,7 +30,7 @@ dependencies:
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '8'
33
- description:
33
+ description:
34
34
  email:
35
35
  - support@autoscale.app
36
36
  executables: []
@@ -53,7 +53,7 @@ metadata:
53
53
  changelog_uri: https://github.com/autoscale-app/ruby-queue-sidekiq/blob/master/CHANGELOG.md
54
54
  bug_tracker_uri: https://github.com/autoscale-app/ruby-queue-sidekiq/issues
55
55
  rubygems_mfa_required: 'true'
56
- post_install_message:
56
+ post_install_message:
57
57
  rdoc_options: []
58
58
  require_paths:
59
59
  - lib
@@ -68,8 +68,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  requirements: []
71
- rubygems_version: 3.4.6
72
- signing_key:
71
+ rubygems_version: 3.4.10
72
+ signing_key:
73
73
  specification_version: 4
74
74
  summary: Produces Sidekiq queue metrics for the Autoscale.app Agent
75
75
  test_files: []