Only if the number of spool files reported can be guaranteed to change in lockstep with the transfer of the files. Even if it works at the moment, it could change at some time in the future. It would be best to program defensively and the simplest way is to distribute them randomly by extending the sort key.
Regards, Rodger Bagnall On 2011/01/05 10:53, Paul Lautman wrote:
But the first time you give a new file to a worker, they then have 1 more file than the rest of the lowest, so next time you will be bound to pick a different one!!!