def build_blog(args): tasks = [] for lang in args.blog_lang.split(','): if lang: tasks.append(( lang, args, )) util.run_function_in_parallel(build_for_lang, tasks, threads=False)
def build_releases(args, callback): tasks = [] for release in args.stable_releases: tasks.append(( args, callback, release, )) util.run_function_in_parallel(process_release, tasks)