pique 0.1.2 → 0.1.3
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 +2 -2
- data/lib/pique/sidekiq/client_middleware.rb +4 -2
- data/lib/pique/sidekiq/server_middleware.rb +7 -3
- data/lib/pique/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59376966d633971953d649531aa89bc22dcb451fbaa0465ed291ed14882c21a9
|
4
|
+
data.tar.gz: b25cbca10beac5fb0c9793b30203d36fc87b6f8403b99424cd67f5b2b2d737e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02d09a5204a09078ea47617f30adbf0ac2149d3cc6bd6fc4b9b4a45a64afa9d49a2d76c322469b4b60f1220f8fa6fb96f7893234ce8a9cca9aead0c3367b95a0
|
7
|
+
data.tar.gz: 22533819d086a0f42799e9e17f451e35b17fe81bed9fe65c465bbff916931894a6889c69d7245885f769336320a8527ccd50813fc67f46a14d2fd98ad3f02c68
|
data/lib/pique/agent.rb
CHANGED
@@ -5,8 +5,10 @@ class Pique::Sidekiq::ClientMiddleware
|
|
5
5
|
include Sidekiq::ClientMiddleware
|
6
6
|
|
7
7
|
def call(worker, job, queue, redis_pool)
|
8
|
-
|
9
|
-
|
8
|
+
if Pique::Agent.can_run?
|
9
|
+
agent = Pique::Agent.run!
|
10
|
+
agent.push(worker, job)
|
11
|
+
end
|
10
12
|
yield
|
11
13
|
end
|
12
14
|
end
|
@@ -5,8 +5,12 @@ class Pique::Sidekiq::ServerMiddleware
|
|
5
5
|
include Sidekiq::ServerMiddleware
|
6
6
|
|
7
7
|
def call(worker, job, queue)
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
if Pique::Agent.can_run?
|
9
|
+
agent = Pique::Agent.run!
|
10
|
+
yield
|
11
|
+
agent.push(worker, job)
|
12
|
+
else
|
13
|
+
yield
|
14
|
+
end
|
11
15
|
end
|
12
16
|
end
|
data/lib/pique/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pique
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bilal
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Pique is a Rails plugin that monitors your jobs.
|
14
14
|
email:
|