def METHOD_NAME(
    api: Api, queue_name: str, launch_spec: Dict[str, Any], project_queue: str
) -> Any:
    try:
        res = api.push_to_run_queue(queue_name, launch_spec, project_queue)
    except Exception as e:
        wandb.termwarn(f"{LOG_PREFIX}Exception when pushing to queue {e}")
        return None
    return res