Re: How to control the ttr in a job worker?
Thank you very much 在 2016年10月20日星期四 UTC+8上午12:09:16,Scott Wiersdorf写道: > > You can use the stats-job(id) command from the client. The server will > return the id again, the tube it came from, its state, priority, age, ttr, > and other information also described in the protocol document I linked > earlier. If your client is non-blocking (and handling multiple jobs), you > may also receive a "DEADLINE_SOON" from the server which indicates the job > is within 1 second of its TTR (which would also indicate you need to touch > the job). > > In practice, you may find it easier not to ask about the TTR and instead > just send a "touch" command every time your worker has the opportunity to > do so *and* if the job is making progress. > > Scott > > On Wednesday, October 19, 2016 at 3:01:22 AM UTC-6, TofuLay wrote: >> >> My english is poor! >> So sorry! >> My problem is : how to know the job will time out and when is the right >> time to send "touch"? >> Thank you very much!!! >> >> 在 2016年10月18日星期二 UTC+8上午9:34:48,Scott Wiersdorf写道: >>> >>> If I understand your question correctly, a client can "touch" a job, >>> which will reset the TTR on the job. >>> >>> https://raw.githubusercontent.com/kr/beanstalkd/master/doc/protocol.txt >>> >>> Scott >>> >>> On Monday, October 17, 2016 at 5:37:57 PM UTC-6, TofuLay wrote: How to control the ttr when a job need more seconds second in a client worker >>> -- You received this message because you are subscribed to the Google Groups "beanstalk-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to beanstalk-talk+unsubscr...@googlegroups.com. To post to this group, send email to beanstalk-talk@googlegroups.com. Visit this group at https://groups.google.com/group/beanstalk-talk. For more options, visit https://groups.google.com/d/optout.
Re: How to control the ttr in a job worker?
You can use the stats-job(id) command from the client. The server will return the id again, the tube it came from, its state, priority, age, ttr, and other information also described in the protocol document I linked earlier. If your client is non-blocking (and handling multiple jobs), you may also receive a "DEADLINE_SOON" from the server which indicates the job is within 1 second of its TTR (which would also indicate you need to touch the job). In practice, you may find it easier not to ask about the TTR and instead just send a "touch" command every time your worker has the opportunity to do so *and* if the job is making progress. Scott On Wednesday, October 19, 2016 at 3:01:22 AM UTC-6, TofuLay wrote: > > My english is poor! > So sorry! > My problem is : how to know the job will time out and when is the right > time to send "touch"? > Thank you very much!!! > > 在 2016年10月18日星期二 UTC+8上午9:34:48,Scott Wiersdorf写道: >> >> If I understand your question correctly, a client can "touch" a job, >> which will reset the TTR on the job. >> >> https://raw.githubusercontent.com/kr/beanstalkd/master/doc/protocol.txt >> >> Scott >> >> On Monday, October 17, 2016 at 5:37:57 PM UTC-6, TofuLay wrote: >>> >>> How to control the ttr when a job need more seconds second in a client >>> worker >>> >> -- You received this message because you are subscribed to the Google Groups "beanstalk-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to beanstalk-talk+unsubscr...@googlegroups.com. To post to this group, send email to beanstalk-talk@googlegroups.com. Visit this group at https://groups.google.com/group/beanstalk-talk. For more options, visit https://groups.google.com/d/optout.
Re: How to control the ttr in a job worker?
My english is poor! So sorry! My problem is : how to know the job will time out and when is the right time to send "touch"? Thank you very much!!! 在 2016年10月18日星期二 UTC+8上午9:34:48,Scott Wiersdorf写道: > > If I understand your question correctly, a client can "touch" a job, which > will reset the TTR on the job. > > https://raw.githubusercontent.com/kr/beanstalkd/master/doc/protocol.txt > > Scott > > On Monday, October 17, 2016 at 5:37:57 PM UTC-6, TofuLay wrote: >> >> How to control the ttr when a job need more seconds second in a client >> worker >> > -- You received this message because you are subscribed to the Google Groups "beanstalk-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to beanstalk-talk+unsubscr...@googlegroups.com. To post to this group, send email to beanstalk-talk@googlegroups.com. Visit this group at https://groups.google.com/group/beanstalk-talk. For more options, visit https://groups.google.com/d/optout.
Re: How to control the ttr in a job worker?
If I understand your question correctly, a client can "touch" a job, which will reset the TTR on the job. https://raw.githubusercontent.com/kr/beanstalkd/master/doc/protocol.txt Scott On Monday, October 17, 2016 at 5:37:57 PM UTC-6, TofuLay wrote: > > How to control the ttr when a job need more seconds second in a client > worker > -- You received this message because you are subscribed to the Google Groups "beanstalk-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to beanstalk-talk+unsubscr...@googlegroups.com. To post to this group, send email to beanstalk-talk@googlegroups.com. Visit this group at https://groups.google.com/group/beanstalk-talk. For more options, visit https://groups.google.com/d/optout.
How to control the ttr in a job worker?
How to control the ttr when a job need more seconds second in a client worker -- You received this message because you are subscribed to the Google Groups "beanstalk-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to beanstalk-talk+unsubscr...@googlegroups.com. To post to this group, send email to beanstalk-talk@googlegroups.com. Visit this group at https://groups.google.com/group/beanstalk-talk. For more options, visit https://groups.google.com/d/optout.
How to control the ttr in a job worker?
How to control the ttr in a job worker? -- You received this message because you are subscribed to the Google Groups "beanstalk-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to beanstalk-talk+unsubscr...@googlegroups.com. To post to this group, send email to beanstalk-talk@googlegroups.com. Visit this group at https://groups.google.com/group/beanstalk-talk. For more options, visit https://groups.google.com/d/optout.