code: def build_save_containers(platforms, registry, load_cache) -> int:
      
      from joblib import Parallel, delayed
      if len(platforms) == 0:
          return 0
  
      platform_results = Parallel(n_jobs=PARALLEL_BUILDS, backend="multiprocessing")(
          delayed(_build_save_container)(platform, registry, load_cache)
          for platform in platforms)
  
      is_error = False
      for platform_result in platform_results:
          if platform_result is not None:
              logging.error('Failed to generate %s', platform_result)
              is_error = True
  
      return 1 if is_error else 0
docs: Entry point to build and upload all built dockerimages in parallel
      :param platforms: List of platforms
      :param registry: Docker registry name
      :param load_cache: Load cache before building
      :return: 1 if error occurred, 0 otherwise