Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update docs for worker results

  • Loading branch information...
commit b5fc7bd7c3341061fc20259b95caeb7b2b293b7d 1 parent 20ae53f
@gnufied authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 doc/content/rails/rails.txt
View
10 doc/content/rails/rails.txt
@@ -75,7 +75,15 @@ rails using:
<pre class="boxed">status_obj = MiddleMan.worker(:foo_worker).ask_result(cache_key) </pre>
-You can as usual use @worker_key@ if *worker was started with a worker_key*.
+You must use @worker_key@ if *worker was started with a worker_key*.
+
+From controller, you can also reset result stored for a particular worker, with particular cache key.
+This is only applicable, if you are using memcache for storing results.
+
+<pre class="multiline">
+MiddleMan.worker(:foo_worker).reset_memcache_result(cache_key) # or
+MiddleMan.worker(:foo_worker,"worker_key").reset_memcache_result(cache_key)
+</pre>
%(entry-title)<a name="persistent_task"> Enqueue task to the persistent job queue : </a>%
Please sign in to comment.
Something went wrong with that request. Please try again.