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 +4 -4
- data/lib/pique/agent.rb +3 -2
- data/lib/pique/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df0100d41903ba4dd0e104a0c8cb36c49e2a1a4620b5acf4fc3f461ff4cfe32e
|
4
|
+
data.tar.gz: 1da50fecee9798e602f758694aab7d5f8843dd26ad8fe819d1700150bd30e05d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
54
|
+
sleep 5 - (rand * 5) # Randomize sleep time
|
54
55
|
end
|
55
56
|
end
|
56
57
|
end
|
data/lib/pique/version.rb
CHANGED