You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make some Info and NodeInfo attributes optional. For example:
job_info.cpu_time# => nil
Some of these attributes (in particular Info#submit_host, Info#cpu_time, and NodeInfo#procs for Slurm) can not be retrieved for a given resource manager. Setting them nil will make them easy to check for existence and let the app display a default value if it wants.
For example:
<liclass="job-info"><%=content_tag:ul,"Job Id = #{info.job_id}"%> <%# Don't display list item if it doesn't exist %> <%=content_tag:ul,"Submit Host = #{info.submit_host}"ifinfo.submit_host%> <%# Set a default value for list item if it doesn't exist %> <%=content_tag:ul,"CPU Time = #{info.cpu_time || "Not Supported"}"%></li>
The text was updated successfully, but these errors were encountered:
Make some
Info
andNodeInfo
attributes optional. For example:Some of these attributes (in particular
Info#submit_host
,Info#cpu_time
, andNodeInfo#procs
for Slurm) can not be retrieved for a given resource manager. Setting themnil
will make them easy to check for existence and let the app display a default value if it wants.For example:
The text was updated successfully, but these errors were encountered: