Skip to content

Commit

Permalink
Document touch command's TTR reset
Browse files Browse the repository at this point in the history
This fixes #188.
  • Loading branch information
JensRantil committed Jun 20, 2013
1 parent c3f8d66 commit 157d88b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc/protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ There are two possible responses:

#### `touch` command

The `touch` command allows a worker to request more time to work on a job. This is useful for jobs that potentially take a long time, but you still want the benefits of a TTR pulling a job away from an unresponsive worker. A worker may periodically tell the server that it's still alive and processing a job (e.g. it may do this on `DEADLINE_SOON`).
The `touch` command allows a worker to request more time to work on a job. This is useful for jobs that potentially take a long time, but you still want the benefits of a TTR pulling a job away from an unresponsive worker. A worker may periodically tell the server that it's still alive and processing a job (e.g. it may do this on `DEADLINE_SOON`). The command postpones the auto release of a reserved job until TTR seconds from when the command is issued.


The touch command looks like this:

Expand Down
3 changes: 2 additions & 1 deletion doc/protocol.txt
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ The "touch" command allows a worker to request more time to work on a job.
This is useful for jobs that potentially take a long time, but you still want
the benefits of a TTR pulling a job away from an unresponsive worker. A worker
may periodically tell the server that it's still alive and processing a job
(e.g. it may do this on DEADLINE_SOON).
(e.g. it may do this on DEADLINE_SOON). The command postpones the auto
release of a reserved job until TTR seconds from when the command is issued.

The touch command looks like this:

Expand Down

0 comments on commit 157d88b

Please sign in to comment.