- # 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.
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