Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Document stats-job values delay and ttr #208

Open
wants to merge 1 commit into from

1 participant

@tdg5

Document delay and ttr values returned by stats-job command. Language borrowed from elsewhere in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 9, 2013
  1. @tdg5
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 0 deletions.
  1. +2 −0  doc/protocol.md
  2. +6 −0 doc/protocol.txt
View
2  doc/protocol.md
@@ -397,6 +397,8 @@ The `stats-job` data is a YAML file representing a single dictionary of strings
* `state` is `ready` or `delayed` or `reserved` or `buried`
* `pri` is the priority value set by the put, release, or bury commands.
* `age` is the time in seconds since the put command that created this job.
+* `delay` is the integer number of seconds to wait before putting this job in the ready queue.
+* `ttr` -- time to run -- is the integer number of seconds a worker is allowed to run this job.
* `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.
* `file` is the number of the earliest binlog file containing this job. If -b wasn't used, this will be 0.
* `reserves` is the number of times this job has been reserved.
View
6 doc/protocol.txt
@@ -448,6 +448,12 @@ to scalars. It contains these keys:
- "age" is the time in seconds since the put command that created this job.
+ - "delay" is the integer number of seconds to wait before putting this job in
+ the ready queue.
+
+ - "ttr" -- time to run -- is the integer number of seconds a worker is
+ allowed to run this job.
+
- "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
Something went wrong with that request. Please try again.