Daniel, Thanks for your explanation.
Looks like it is not easy to track the final build number if it's scheduled via remote api. The caller only receives the queue item after scheduling a new build. And the queue item which is corresponding to the new build will be removed in 5 minutes after the scheduled build is started or canceled. However it's impossible for caller to point out the certain time when the queue item lefts queue. The scheduled new build might be ran immediately, or wait for minutes, hours or even longer. Looks like the caller has to continuously poll the queue item url every N(<300) seconds. Is it correct? or do you know another more efficient and reliable way to track the final build state which is scheduled via remote api? Kane On Sun, Sep 13, 2015 at 9:29 AM, Daniel Beck <m...@beckweb.net> wrote: > > On 12.09.2015, at 11:41, zhu kane <kane...@gmail.com> wrote: > > > Does it mean the third party who are using remote APIs to track the job > information having to fetch the corresponding job information via queue > item in 3 minutes? > > It's five minutes, otherwise you're right. > > > What will happen if the queue item is blocked than 3 minutes due to no > available executor or quiet time exceeding 3 minutes? They will be removed > as well? > > This caches only "left items", i.e. those that left the queue (canceled or > building), starting the moment they leave the queue. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/FC8C2B4A-90F8-4624-8F83-B88E762D023B%40beckweb.net > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAM%2BCGXRphABtfSkzW0nOYw3yV%3Ds9QpM5yOb28TFw6mN2y-EC1g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.