autoscale-queue-good_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: 0d5ee37ee4ee2ea6712c1b61cd63c99c9ce283a9357b3b700307933e03655e57
4
- data.tar.gz: 9f2ba5c8e55c153a335da66f2013ad932214b7298167a654d46225ae5ad45b54
3
+ metadata.gz: a00e8e8c6ccde64d519f402afda7ac4b64a30c2657096c56459b411fbe7efad6
4
+ data.tar.gz: 480abd8505b5817318d8b78231b67f43b7567c219b1dca26dfa3a59434d9e2f8
5
5
  SHA512:
6
- metadata.gz: cbdcbf4313eb21844af751712a7c43d4de15f509ee99129a38b88f18ff93ab714e8fbc07ffd2d0ca06d6ec0f23c9dc1e07a0490a7f5148ba54e5803aed6cb150
7
- data.tar.gz: d15bab134f32e72e5ab7ef3844cbd6ebc7a5dd4c78f2f397abf69def1840b5f1ac569ee2f4d24e4df7cdda6083c05858fde52a42c29827a5d238116485b85e4b
6
+ metadata.gz: e71a3f24abd40143b95b9d7fb1909855c64b9944319d82a355101c94ea302bf968c4076f3dc3173eb13e97342a8747bb87311215c12ab7513756ed0dc067f936
7
+ data.tar.gz: 5d692e486abf365b6109233f504c51d3e603dffcb99f16acd4bacbef8a0164974a64d3c2a0b077c85cc27df471338feab42a06ec03c1f2c7c32a106e556d9b7f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.0] - 2023-03-03
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 GoodJob
4
- VERSION = "0.1.0".freeze
4
+ VERSION = "0.2.0".freeze
5
5
  end
6
6
  end
7
7
  end
@@ -3,14 +3,14 @@ require_relative "good_job/version"
3
3
  module Autoscale
4
4
  module Queue
5
5
  module GoodJob
6
- def latency(*queues)
6
+ def job_queue_time(*queues)
7
7
  qry = ::GoodJob::Job.select("COALESCE(scheduled_at, created_at) AS run_at")
8
8
  qry = qry.where(queue_name: queues) unless queues.empty?
9
9
  age = qry.queued.order(:run_at).first.try(:run_at)
10
10
  age ? (Time.now - age).round : 0
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,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoscale-queue-good_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-good_job/blob/master/CHANGELOG.md
34
34
  bug_tracker_uri: https://github.com/autoscale-app/ruby-queue-good_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 Good Job queue metrics for the Autoscale.app Agent
55
55
  test_files: []