autoscale-queue-delayed-job 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: 1841faf66485964c79a667e497bef85a393e8d1c6126daabda21a3723ef1bf45
4
- data.tar.gz: 6f1ee2948505c253c7de59b17bb0a9238a63f5a88e331204d61fe6a785f50107
3
+ metadata.gz: 8ffb0df3f12a4f43a5a764fcca8124768b7f41d8a76eed74655bf69cf202f2f9
4
+ data.tar.gz: 58635ced31ded8538eb3ac258906b7e81933f5cbdc2cf5c7339260cdec41be4a
5
5
  SHA512:
6
- metadata.gz: 9205241bb1523b6b348f7e80c1691920ef5f440552f48e1028ecfc2768d2ca3671d4893e6d107e9c70e75aff34a9bfdccb6164c1cb5b24d471cbe78473e5cead
7
- data.tar.gz: a0c42590fa685ddf7153fa94f9e0cbe725c41d06eeeafe852a4bf9dbd1738b4da0dff91652f6f086c379d0a8c766aecb9e19c31e49a162626e455f6fdc8a3016
6
+ metadata.gz: a2042a6224b7cc16d3973de7e76b696f594905e3ba11c6ab9246e12c64941d06b90247e95ced3bb3ee64a9cf7f2c3456ab82ad45c2bff0d46337a24b650b3420
7
+ data.tar.gz: 85c234ea840052cb73e647ea830979bfdd06b63ddce51403e56a5873794fa7b9aeba472cb4bd6d7c53e260f5bc7858f795ad654c452c4be89f12b05180edc7ac
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
@@ -2,7 +2,7 @@ module Autoscale
2
2
  module Queue
3
3
  module Delayed
4
4
  module Job
5
- VERSION = "0.1.0".freeze
5
+ VERSION = "0.2.0".freeze
6
6
  end
7
7
  end
8
8
  end
@@ -4,7 +4,7 @@ module Autoscale
4
4
  module Queue
5
5
  module Delayed
6
6
  module Job
7
- def latency(*queues)
7
+ def job_queue_time(*queues)
8
8
  qry = ::Delayed::Job.select(:run_at)
9
9
  qry = qry.where("run_at <= ?", Time.now)
10
10
  qry = qry.where(failed_at: nil, locked_at: nil)
@@ -13,7 +13,7 @@ module Autoscale
13
13
  age ? (Time.now - age).round : 0
14
14
  end
15
15
 
16
- module_function :latency
16
+ module_function :job_queue_time
17
17
  end
18
18
  end
19
19
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoscale-queue-delayed-job
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
- description:
13
+ description:
14
14
  email:
15
15
  - support@autoscale.app
16
16
  executables: []
@@ -33,7 +33,7 @@ metadata:
33
33
  changelog_uri: https://github.com/autoscale-app/ruby-queue-delayed-job/blob/master/CHANGELOG.md
34
34
  bug_tracker_uri: https://github.com/autoscale-app/ruby-queue-delayed-job/issues
35
35
  rubygems_mfa_required: 'true'
36
- post_install_message:
36
+ post_install_message:
37
37
  rdoc_options: []
38
38
  require_paths:
39
39
  - lib
@@ -48,8 +48,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  requirements: []
51
- rubygems_version: 3.4.6
52
- signing_key:
51
+ rubygems_version: 3.4.10
52
+ signing_key:
53
53
  specification_version: 4
54
54
  summary: Produces Delayed Job queue metrics for the Autoscale.app Agent
55
55
  test_files: []