Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Document `touch` commands time #188

Closed
JensRantil opened this Issue · 5 comments

3 participants

@JensRantil

The API documentation states that

The "touch" command allows a worker to request more time to work on a job.

However, it does not state how much more time the client is given. How long is it?

@Perlover

https://raw.github.com/kr/beanstalkd/master/doc/protocol.txt

The stats-job command gives statistical information about the specified job if
it exists. Its form is:

stats-job <id>\r\n

 - "time-left" is the number of seconds left until the server puts this job
   into the ready queue. This number is only meaningful if the job is
   reserved or delayed. If the job is reserved and this amount of time
   elapses before its state changes, it is considered to have timed out.

It has been documented. It's not enough for you? :)
Or may be it's not what you want?

@kr
Owner
kr commented

Confirmed, this is an oversight in the protocol doc.
The touch command should say what it actually does.

@JensRantil

It has been documented. It's not enough for you? :)

Nope. :) Because I don't consider touch to change the state of a job.

@kr kr closed this in 157d88b
@kr
Owner
kr commented

Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.