uber / fiber

Distributed Computing for AI Made Simple
https://uber.github.io/fiber/
Apache License 2.0
1.04k stars 110 forks source link

Fix argument preparation for Pool.starmap #32

Closed calio closed 4 years ago

calio commented 4 years ago

Both Pool.startmap and Pool.apply_async set starmap=True when creating tasks. Previously Pool.starmap didn't have correct argument list. The correct format should be:

[(args, kwargs), ...] (used by Pool.apply_async) or
[(args,), ...] (used by Pool.starmap)