resque-batched-job 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -23,7 +23,7 @@ module Resque
|
|
|
23
23
|
# Batch the job. The first argument of a batched job, is the batch id.
|
|
24
24
|
def after_enqueue_batch(id, *args)
|
|
25
25
|
mutex(id) do |bid|
|
|
26
|
-
redis.rpush(bid, encode(:class => self, :args => args))
|
|
26
|
+
redis.rpush(bid, encode(:class => self.name, :args => args))
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
@@ -58,7 +58,7 @@ module Resque
|
|
|
58
58
|
# Remove a job from the batch list.
|
|
59
59
|
def remove_batched_job(id, *args)
|
|
60
60
|
mutex(id) do |bid|
|
|
61
|
-
redis.lrem(bid, 1, encode(:class => self, :args => args))
|
|
61
|
+
redis.lrem(bid, 1, encode(:class => self.name, :args => args))
|
|
62
62
|
end
|
|
63
63
|
end
|
|
64
64
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: resque-batched-job
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -13,7 +13,7 @@ date: 2011-12-12 00:00:00.000000000Z
|
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: resque
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &70182550976360 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ! '>='
|
|
@@ -21,7 +21,7 @@ dependencies:
|
|
|
21
21
|
version: 1.10.0
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements: *
|
|
24
|
+
version_requirements: *70182550976360
|
|
25
25
|
description: ! " Resque plugin for batching jobs. When a batch/group of jobs are
|
|
26
26
|
complete, \nadditional work can be performed usings batch hooks.\n"
|
|
27
27
|
email: dan@dj-agiledev.com
|