
5 Feb
2021
5 Feb
'21
11:10 a.m.
+ error_msg = "The maximum runtime should no more than 10 days."
=> Machine borrow time cannot exceed 10 days. Consider re-borrow.
+ # case runtime/sleep value count is more than 10 days, job will fail. + raise error_msg if @hash["runtime"].to_i > max_run_time
Better test pp.sleep.runtime to catch this situation: sleep: runtime: xx
+ raise error_msg if @hash["sleep"].to_i > max_run_time
+ end + private def is_valid_account?(account_info) return false unless account_info.is_a?(JSON::Any)
-- 2.23.0