On Tue, Nov 17, 2020 at 04:52:16PM +0800, Ren Wen wrote:
- # it is not a cluster job if cluster field is empty or
- # field's prefix is 'cs-localhost'
- # how to execute a cluster job:
- # has a cluster field, and the value is not "cs-localhost" cluster_file = job["cluster"]
- if cluster_file.empty? || cluster_file.starts_with?("cs-localhost")
I think "starts_with?" is better "==", unless "cs-localhost-1" is a cluster job.
'cs-localhost' is a fixed value.
Ok.
Thanks, Xueliang
Thanks, RenWen
Thanks, Xueliang
- if cluster_file.empty? || cluster_file == "cs-localhost" return submit_single_job(job) else cluster_config = get_cluster_config(cluster_file,
-- 2.23.0