Fix multiprocessing pool usage and remove stackoverflow hack

This commit is contained in:
Michael DeHaan 2012-02-23 22:38:51 -05:00
commit 530e54b3e4
3 changed files with 15 additions and 106 deletions

View file

@ -85,10 +85,14 @@ The API is simple and returns basic datastructures.
)
data = runner.run()
{
'xyz.example.com' : [ 'any kind of datastructure is returnable' ],
'foo.example.com' : None, # failed to connect,
...
{
'successful' : {
'xyz.example.com' : [ 'any kind of datastructure is returnable' ],
'foo.example.com' : [ '...' ]
},
'failed' : {
'bar.example.com' : [ 'failure message' ]
}
}
Additional options to Runner include the number of forks, hostname