def METHOD_NAME(soa_dir):
    cluster = load_system_paasta_config().get_cluster()
    instances = get_services_for_cluster(
        instance_type="marathon", cluster=cluster, soa_dir=soa_dir
    )
    job_configs = dict()
    formatted_marathon_configs = dict()
    for service, instance in instances:
        try:
            job_config = load_marathon_service_config(
                service=service, instance=instance, cluster=cluster, soa_dir=soa_dir
            )
            formatted_config = job_config.format_marathon_app_dict()
            formatted_marathon_configs[
                formatted_config["id"].lstrip("/")
            ] = formatted_config
            job_configs[formatted_config["id"].lstrip("/")] = job_config
        # Not ideal but we rely on a lot of user input to create the app dict
        # and we really can't afford to bail if just one app definition is malformed
        except Exception as errormsg:
            _log(
                service=service,
                line=str(errormsg),
                component="deploy",
                level="debug",
                cluster=cluster,
                instance=instance,
            )
    return formatted_marathon_configs, job_configs