Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: resque/resque
...
head fork: mojodna/resque
compare: master
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 44 additions and 1 deletion.
  1. +43 −0 docs/REDIS_KEYS.md
  2. +1 −1  lib/resque/server/views/stats.erb
43 docs/REDIS_KEYS.md
View
@@ -0,0 +1,43 @@
+Redis Keys
+==========
+
+Resque uses a number of Redis keys for housekeeping and task tracking. All keys
+are prefixed with your configured Resque namespace (default: `resque`), e.g.
+`resque:queues`.
+
+Queues and Tasks
+----------------
+
+Queues and tasks are tracked in the following keys:
+
+* `queues` - a Set of queue names
+* `queue:<queue name>` - a List of JSON blobs describing a task
+
+Failed tasks (and the reason for their failure):
+
+* `failed` - a List of JSON blobs with error data
+
+Workers
+-------
+
+Workers are tracked in the following keys:
+
+* `workers` - a Set of worker ids, formatted as `<hostname>:<pid>:<queues>`,
+ e.g. `pika.local:77277:*` for a worker running on `pika.local` and operating on
+ all queues.
+* `worker:<worker id>:started` - a String containing the date/time when the
+ worker was started
+
+Statistics
+----------
+
+A variety of statistics are tracked in the following keys:
+
+* `stat:failed` - a String containing the total number of failed tasks
+* `stat:processed` - a String containing the total number of tasks processed
+* `stat:failed:<worker id>` - a String containing the number of failed tasks
+ belonging to a particular worker
+* `stat:processed:<worker id>` - a String containing the number of tasks
+ processed by a particular worker
+
+Worker-specific statics are cleared when the worker shuts down.
2  lib/resque/server/views/stats.erb
View
@@ -39,7 +39,7 @@
<% elsif params[:id] == 'keys' %>
<h1>Keys owned by <%= resque %></h1>
- <p class='sub'>(All keys are actually prefixed with "resque:")</p>
+ <p class='sub'>(All keys are actually prefixed with "<%= Resque.redis.namespace %>:")</p>
<table class='stats'>
<tr>
<th>key</th>

No commit comments for this range

Something went wrong with that request. Please try again.