lib/lp/codehosting/codeimport/dispatcher.py
You have:
if worker_limit is None: self.worker_limit = \ config.codeimportdispatcher.max_jobs_per_machine
Which doesn't set self.worker_limit if worker_limit is passed in.
if worker_limit is None: worker_limit = config.codeimportdispatcher.max_jobs_per_machine self.worker_limit = worker_limit
perhaps.
How hard would it be to add an int Option? That way the OptionParser object does the integer validation and conversion for you.
--max-jobs
« Back to merge proposal
lib/lp/ codehosting/ codeimport/ dispatcher. py
You have:
if worker_limit is None:
self.worker_ limit = \
config. codeimportdispa tcher.max_ jobs_per_ machine
Which doesn't set self.worker_limit if worker_limit is passed in.
if worker_limit is None:
worker_ limit = config. codeimportdispa tcher.max_ jobs_per_ machine worker_ limit = worker_limit
self.
perhaps.
How hard would it be to add an int Option? That way the OptionParser object does the integer validation and conversion for you.
--max-jobs