[LU-17512] add conditional operator for 'jobid_name' Created: 07/Feb/24 Updated: 07/Feb/24 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Andreas Dilger | Assignee: | WC Triage |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | easy | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Severity: | 3 | ||||||||||||||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||||||||||||||
| Description |
|
It would be useful to add a conditional operator like jobid_name=%j?%H:%e:%u to allow using jobid_var if it is set, otherwise use the short hostname. This allows adding the hostname for interactive jobs that don't have the jobid_var environment variable set (e.g. on login nodes or commands that are run on compute nodes outside of the configured job scheduler), while also not splitting up the job stats for a single 5000-node job into 5000x separate JobIDs to track on the servers for cases where jobid_var is set. |
| Comments |
| Comment by Andreas Dilger [ 07/Feb/24 ] |
|
This also has the benefit of shortening the JobID string so that more useful information can fit into the current size limits. |