On Sat, Jan 09, 2021 at 07:00:06PM +0800, Hu Xuejiao wrote:
[why] Because we use "es-find (id='')" to search id-information,
'es-find id=xxx'
but when submit, it is (job_id=''). so it is recommended
response is 'job_id=xxx'
that the value be the same as the ID
keep consistent: id, job_id
Signed-off-by: Hu XueJiao 1034502035@qq.com
sbin/submit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sbin/submit b/sbin/submit index a92556ff..448d6243 100755 --- a/sbin/submit +++ b/sbin/submit @@ -164,10 +164,10 @@ ARGV.each do |jobfile| JSON.parse(messages).each do |msg| if msg['message'].empty? job_ids << msg['job_id'].to_s
puts("submit #{jobfile}, got job_id=#{msg['job_id']}")
puts("submit #{jobfile}, got job id=#{msg['job_id']}")
got job: id=xxx
Thanks, RenWen
else opt_monitor = false
puts("submit #{jobfile} failed, got job_id=#{msg['job_id']}, error: #{msg['message']}")
end endputs("submit #{jobfile} failed, got job id=#{msg['job_id']}, error: #{msg['message']}") end
-- 2.23.0