Skip to content

Commit

Permalink
Merge pull request #105 from bmaddy/patch-1
Browse files Browse the repository at this point in the history
Add section about % completed
  • Loading branch information
quirkey committed May 12, 2014
2 parents ee22737 + feb090f commit 2bbf14b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.rdoc
Expand Up @@ -129,9 +129,17 @@ by UUID.

Resque::Plugins::Status::Hash.kill(job_id)

The next time the job at job_id calls <tt>at</tt> or tick, it will raise a Killed
The next time the job at job_id calls <tt>at</tt> or <tt>tick</tt>, it will raise a <tt>Killed</tt>
error and set the status to killed.

=== Percent Complete and setting the message

Use <tt>at</tt> or <tt>tick</tt> to show progress in your job's <tt>perform</tt> function
(which is displayed on the resque-web status tab). This will also be where <tt>Killed</tt>
is raised if the job is killed.

at(steps_completed, total_steps, "${steps_completed} of #{total_steps} steps completed!")

=== Expiration

Since Redis is RAM based, we probably don't want to keep these statuses around forever
Expand Down

0 comments on commit 2bbf14b

Please sign in to comment.