def METHOD_NAME(
    job: Job, metadata: qgis.core.QgsLayerMetadata, updateLayers: bool = False
):
    file_path = os.path.splitext(manager.job_manager.get_job_file_path(job))[0] + ".qmd"
    save_qmd(file_path, metadata)
    if updateLayers:
        for u in job.results.get_all_uris():
            update_layer_metadata(u.uri, metadata)