Signed-off-by: Hu XueJiao huxuejiao1@huawei.com --- sbin/submit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sbin/submit b/sbin/submit index c49e1e9a..770f0cec 100755 --- a/sbin/submit +++ b/sbin/submit @@ -115,12 +115,14 @@ ARGV.each do |jobfile| sh_run_job = job.sh_run_job sh_extract_stats = job.sh_extract_stats sh_define_files = job.sh_define_files + sh_on_fail = job.sh_on_fail
sh_hash = { 'job2sh' => { 'run_job' => sh_run_job, 'extract_stats' => sh_extract_stats, - 'define_files' => sh_define_files + 'define_files' => sh_define_files, + 'on_fail' => sh_on_fail } }
Can't see What is the relation with scheduler.
On Thu, Oct 29, 2020 at 09:07:26PM +0800, Hu Xuejiao wrote:
Signed-off-by: Hu XueJiao huxuejiao1@huawei.com
sbin/submit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sbin/submit b/sbin/submit index c49e1e9a..770f0cec 100755 --- a/sbin/submit +++ b/sbin/submit @@ -115,12 +115,14 @@ ARGV.each do |jobfile| sh_run_job = job.sh_run_job sh_extract_stats = job.sh_extract_stats sh_define_files = job.sh_define_files
- sh_on_fail = job.sh_on_fail
What does sh_on_fail mean?
Thanks, Xueliang
sh_hash = { 'job2sh' => { 'run_job' => sh_run_job, 'extract_stats' => sh_extract_stats,
'define_files' => sh_define_files
'define_files' => sh_define_files,
}'on_fail' => sh_on_fail }
-- 2.23.0
This cannot be reviewed without you showing the example input .yaml and output .sh
Thanks, Fengguang
On Thu, Oct 29, 2020 at 09:07:26PM +0800, Hu Xuejiao wrote:
Signed-off-by: Hu XueJiao huxuejiao1@huawei.com
sbin/submit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sbin/submit b/sbin/submit index c49e1e9a..770f0cec 100755 --- a/sbin/submit +++ b/sbin/submit @@ -115,12 +115,14 @@ ARGV.each do |jobfile| sh_run_job = job.sh_run_job sh_extract_stats = job.sh_extract_stats sh_define_files = job.sh_define_files
sh_on_fail = job.sh_on_fail
sh_hash = { 'job2sh' => { 'run_job' => sh_run_job, 'extract_stats' => sh_extract_stats,
'define_files' => sh_define_files
'define_files' => sh_define_files,
}'on_fail' => sh_on_fail }
-- 2.23.0