[why] when the task is failed(state), it need in the waiting state
[how] when job2sh.rb defined sh_on_state, it will be invoked by the scheduler.
Signed-off-by: Hu XueJiao 1034502035@qq.com --- sbin/submit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sbin/submit b/sbin/submit index bc90e2e0..3052cf39 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_state = job.sh_on_state
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_state } }
On Thu, Nov 12, 2020 at 03:03:48PM +0800, Hu Xuejiao wrote:
[why] when the task is failed(state), it need in the waiting state
[how] when job2sh.rb defined sh_on_state, it will be invoked by the scheduler.
Signed-off-by: Hu XueJiao 1034502035@qq.com
sbin/submit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sbin/submit b/sbin/submit index bc90e2e0..3052cf39 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_state = job.sh_on_state
^----keep aligned.
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_state
^----ditto. Thanks, Liushaofei
} }
-- 2.23.0