本地提交任务给remote cluster的方法

请问如果想从local提交任务给remote cluster必须建立port forwarding吗?我想automate这个process来包装给end user,但是port forwarding要求要在另一个terminal进行因为是一个blocking call。这样导致automate很困难,想知道有没有别的方法。ray client我有了解但不符合submit job的use case

你可以看一下 ray 的 Job Submission