File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,16 @@ def enqueue(klass, *args)
153
153
# If no queue can be inferred this method will raise a `Resque::NoQueueError`
154
154
#
155
155
# If no args are given, this method will dequeue *all* jobs matching
156
- # the provided class. See `Resque::Job.destroy` for more information.
156
+ # the provided class. See `Resque::Job.destroy` for more
157
+ # information.
158
+ #
159
+ # Example:
160
+ #
161
+ # # Removes all jobs of class `UpdateNetworkGraph`
162
+ # Resque.dequeue(GitHub::Jobs::UpdateNetworkGraph)
163
+ #
164
+ # # Removes all jobs of class `UpdateNetworkGraph` with matching args.
165
+ # Resque.dequeue(GitHub::Jobs::UpdateNetworkGraph, 'repo:135325')
157
166
#
158
167
# This method is considered part of the `stable` API.
159
168
def dequeue ( klass , *args )
You can’t perform that action at this time.
0 commit comments