pique 0.1.0 → 0.1.1

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: 95ba0ab7588253703860cdc5619e2fd834eb8d8d8d37aeed86a00f4f5d5e1981
4
- data.tar.gz: 76eae98cb061c4647d4563f9d7295ed747ace5efe14d4c7bb8d1b3e66d04256b
3
+ metadata.gz: df0100d41903ba4dd0e104a0c8cb36c49e2a1a4620b5acf4fc3f461ff4cfe32e
4
+ data.tar.gz: 1da50fecee9798e602f758694aab7d5f8843dd26ad8fe819d1700150bd30e05d
5
5
  SHA512:
6
- metadata.gz: 8ef49e472ddfa70559617778b17ccca9a6dbb879b2f30b54e499eccbd5efeedaefbb09ca6d128081d32fc9adaca49a57d1f171c3a438e18410b6f67babf499df
7
- data.tar.gz: af67d2e89dced30ad32c2c1332cac683d33cc52ffd3862a2ecf0b2054c82903bcf8c63bece621a1d9fe49f62ead059d11d9bb95e93dfe76f68ed757146001816
6
+ metadata.gz: 334cefb99a96af10ec9999ec2f71da6691c76a26403a6e0914aefb8608445af446280822074936940b348e33ec0f0b840a9f326ec9fd36906bf2e245dd46be21
7
+ data.tar.gz: 9dac4913f9d48f8308aca4ba98f528a43c0e22084418da3c878d1fee74296af74c00318bbbccb1166d5bbf4165dcaa91a6483c39bbf5466ee832bcc92ce1a46c
data/lib/pique/agent.rb CHANGED
@@ -42,7 +42,8 @@ class Pique::Agent
42
42
  created_at: Time.at(job['created_at']).utc.iso8601(6),
43
43
  scheduled_at: job['at'] ? Time.at(job['at']).utc.iso8601(6) : nil,
44
44
  enqueued_at: job['enqueued_at'] ? Time.at(job['enqueued_at']).utc.iso8601(6) : nil,
45
- tags: job['tags']
45
+ tags: job['tags'],
46
+ timestamp: Time.now.utc.iso8601(6)
46
47
  }
47
48
  end
48
49
 
@@ -50,7 +51,7 @@ class Pique::Agent
50
51
  @_thread = Thread.new do
51
52
  loop do
52
53
  report
53
- sleep 10
54
+ sleep 5 - (rand * 5) # Randomize sleep time
54
55
  end
55
56
  end
56
57
  end
data/lib/pique/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pique
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pique
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - bilal