fanforce-workers 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/fanforce/workers/version.rb +1 -1
- data/lib/fanforce/workers/workers.rb +10 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Y2IzOTBlZmUyY2FiNTA0MzBkYWNlOGUzODhlOWU4M2YzNTI5NDQxYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTRjOTdkYWMyZmYyN2JjODE0YjA4NDU1MWY5M2QxNGNiOTcwNDQ0OA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjJjZDY2ZTE2ZjlmNWIwZmRiZDNhMzJiNzE4NjZkYjI2OGNjMDhiMTY0YmM1
|
10
|
+
Yzg4NTYwYTNlYTA0MTc0MjIxODVmYWJkZTU5NTUyMjc2NTVlNGJmZDAxNzNk
|
11
|
+
MTk2MjMyMzZhZTdmODFhMjUyYmRhZjY1ZmQ4YmNhMzEzOTkxOTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YWI3M2U2ZDFlYzEwNjNlNzI5YjA3NzIzYzVjMDViNjdmNWI3OWMxMzk0NDJi
|
14
|
+
OWZmY2Q0YWRlN2QzMDY3MTQ2NDc0YzQwYzg1ZmRhN2FjMzViMDY0MzEwNWYw
|
15
|
+
ZTYyZWE2NDA4NzFkMzQ2M2I0NDE0ZWU3NGUyNzc1ZTA2Y2NmMTU=
|
@@ -24,11 +24,19 @@ class Fanforce::Workers
|
|
24
24
|
##########################################################################################
|
25
25
|
|
26
26
|
def self.add_error(queue_id, payload)
|
27
|
-
self.new.iron.enqueue("#{queue_id}-ERRORS", payload)
|
27
|
+
self.new.iron.enqueue("#{prefix}#{queue_id}-ERRORS", payload)
|
28
28
|
end
|
29
29
|
|
30
30
|
def self.enqueue(queue_id, payload)
|
31
|
-
self.new.enqueue(queue_id, payload)
|
31
|
+
self.new.enqueue("#{prefix}#{queue_id}", payload)
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.prefix=(prefix)
|
35
|
+
@prefix = prefix
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.prefix
|
39
|
+
@prefix ||= ''
|
32
40
|
end
|
33
41
|
|
34
42
|
##########################################################################################
|