Struct JobResources¶
- Defined in File job_scheduler.h 
Struct Documentation¶
- 
struct JobResources¶
- Complete resource allocation information from job scheduler. - This structure contains all resource allocation information extracted from the job scheduler environment. It provides a unified interface for resource information regardless of the underlying scheduler type. - Management¶- The structure captures: - CPU allocation (cores, tasks, nodes) 
- Memory allocation (total and per-node limits) 
- Job identification and queue information 
- Resource limit flags for validation 
 - Usage¶- This structure is populated by JobSchedulerDetector and used throughout the application to make resource allocation decisions that respect cluster limits and prevent resource conflicts. - Public Members - 
SchedulerType scheduler_type = SchedulerType::NONE¶
- Type of detected job scheduler. 
 - 
std::string job_id¶
- Unique job identifier from scheduler. 
 - 
unsigned int allocated_cpus = 0¶
- Number of CPU cores allocated to job. 
 - 
size_t allocated_memory_mb = 0¶
- Memory allocated to job in megabytes. 
 - 
unsigned int nodes = 1¶
- Number of compute nodes allocated. 
 - 
unsigned int tasks_per_node = 0¶
- Number of tasks per compute node. 
 - 
bool has_cpu_limit = false¶
- Whether CPU limit is explicitly specified. 
 - 
bool has_memory_limit = false¶
- Whether memory limit is explicitly specified. 
 - 
std::string partition¶
- Partition/queue name where job is running. 
 - 
std::string account¶
- Account/project name for resource billing.