On Tue, Oct 20, 2020 at 08:16:02PM +0800, Wei Jihui wrote:
find all monitors and add to job scheduler will use it to get monitors program's cgz.
Signed-off-by: Wei Jihui weijihuiall@163.com
lib/job.rb | 7 +++++++ sbin/submit | 1 + 2 files changed, 8 insertions(+)
diff --git a/lib/job.rb b/lib/job.rb index caa76c4b..e2416eb8 100755 --- a/lib/job.rb +++ b/lib/job.rb @@ -564,6 +564,13 @@ class Job return option_value end
- def add_monitors
- @job['monitors'] = {}
- for_each_in(@job, monitor_params) do |_pk, _h, m_n, _m_args|
@job['monitors'][m_n] = nil
Maybe you can change m_n a more meaningful word?
Thanks, Yuanchao