[01:12] <RoboTeddy> is there a way to restart all the services started by a task such as http://upstart.ubuntu.com/cookbook/#instance ?
[03:56] <SpamapS> RoboTeddy: initctl list is very easy to parse, so thats the way to accomplish that.
[04:07] <RoboTeddy> SpamapS: ok, cool, thanks. here's the actual solution I came up with; I'm not sure if it's problematic: https://gist.github.com/bb349098a1b4f6fb577a
[04:08] <RoboTeddy> instead of using making a task that runs multiple service instances, it's a service that starts multiple services, which are in turn set to shut down when the parent service stops
[04:09] <RoboTeddy> I'm not sure if it's a gross misuse of upstart or not
[04:10] <SpamapS> RoboTeddy: I'm a bit confused why you don't just run the workers as children in the background of python-application using &
[04:11] <RoboTeddy> SpamapS: but then if a child crashed, it wouldn't automatically respawn
[04:11] <SpamapS> true
[04:11] <SpamapS> its actually pretty elegant
[04:11] <RoboTeddy> it's a similar setup to http://upstart.ubuntu.com/cookbook/#instance , except the parent is a service rather than a task
[04:12] <SpamapS> it makes more sense as a service really
[04:12] <RoboTeddy> coool, thanks for the feedback
[04:12] <SpamapS> RoboTeddy: btw, sleep 100000000 works better.. ;)
[04:12] <SpamapS> no need for the while
[04:12] <RoboTeddy> SpamapS: hehe true ;) I had 
[04:12] <RoboTeddy> * I had 'sleep 1', but then realized I'd be hitting the cpu a tad
[04:13] <RoboTeddy> yeah true, 100000000 seconds is 3 years
[04:14] <SpamapS> RoboTeddy: yeah sleep is a free thing so just do sleep 100000 :)
[04:14] <SpamapS> RoboTeddy: in fact you can 'exec sleep 10000000' and save a process :)
[04:14] <RoboTeddy> SpamapS: cool, thanks
[04:14] <SpamapS> I'd go for 2**31
[04:15] <SpamapS> 68 years, and very likely to work :)
[04:15] <RoboTeddy> :) gtg, thanks for the advice
[04:16]  * SpamapS just now realized he will turn 60 when "y2k38" hits