Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

document unspecified job order within each pri

  • Loading branch information...
commit d8b2d9b0429bc6b601c44e1dd9d819125fa89b99 1 parent 3213587
@kr authored
Showing with 8 additions and 0 deletions.
  1. +4 −0 doc/protocol.md
  2. +4 −0 doc/protocol.txt
View
4 doc/protocol.md
@@ -159,6 +159,10 @@ reserve-with-timeout <seconds>\r\n
This will return a newly-reserved job. If no job is available to be reserved, beanstalkd will wait to send a response until one becomes available. Once a job is reserved for the client, the client has limited time to run (TTR) the job before the job times out. When the job times out, the server will put the job back into the ready queue. Both the TTR and the actual time left can be found in response to the `stats-job` command.
+If more than one job is ready, beanstalkd will choose the one with the
+smallest priority value. If more than one job in the smallest priority is
+ready, the choice between them is unspecified.
+
A timeout value of `0` will cause the server to immediately return either a response or `TIMED_OUT`. A positive value of timeout will limit the amount of time the client will block on the reserve request until a job becomes available.
##### `reserve` responses
View
4 doc/protocol.txt
@@ -206,6 +206,10 @@ job before the job times out. When the job times out, the server will put the
job back into the ready queue. Both the TTR and the actual time left can be
found in response to the stats-job command.
+If more than one job is ready, beanstalkd will choose the one with the
+smallest priority value. If more than one job in the smallest priority is
+ready, the choice between them is unspecified.
+
A timeout value of 0 will cause the server to immediately return either a
response or TIMED_OUT. A positive value of timeout will limit the amount of
time the client will block on the reserve request until a job becomes
Please sign in to comment.
Something went wrong with that request. Please try again.