shutdown containers that have been idle for at least five minutes

like it says on the tin.

every five minutes, it checks for idle containers and brings them down,
removing the proxy route.
Thinking more about the delay - I do think we can start out more generous
than 10 minutes - but 12 hours is probably overboard. I think something in
the 1 hour range would be good.

On Thu, Sep 18, 2014 at 7:20 PM, Kyle Kelley <notifications@github.com>
wrote:

> In rando.py:
>
> >      )
> > +
> > +    # check for idle containers to cull every five minutes
> > +    cull_timeout = 300
> > +    delta = datetime.timedelta(seconds=cull_timeout)
> > +    cull_ms = cull_timeout * 1e3
> > +
> > +    culler = tornado.ioloop.PeriodicCallback(
>
> This is cool, I didn't know about this.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jupyter/tmpnb/pull/10/files#r17766549>.
>



-- 
Brian E. Granger
Cal Poly State University, San Luis Obispo
@ellisonbg on Twitter and GitHub
bgranger@calpoly.edu and ellisonbg@gmail.com