This is the meat of getting the consumed energy for the job to the database.
We use the last step in the allocation (works for everything but salloc) to get the data to the job. We update the job as steps finish and send a new tres_alloc_str to the database which will update the job record with the info. We could not use the job_comp message for anything but an salloc since there is not guarantee it will get there after the last step does.
Showing
- src/plugins/accounting_storage/mysql/as_mysql_job.c 14 additions, 0 deletionssrc/plugins/accounting_storage/mysql/as_mysql_job.c
- src/plugins/accounting_storage/slurmdbd/accounting_storage_slurmdbd.c 8 additions, 0 deletions...accounting_storage/slurmdbd/accounting_storage_slurmdbd.c
- src/slurmctld/job_mgr.c 16 additions, 3 deletionssrc/slurmctld/job_mgr.c
- src/slurmctld/step_mgr.c 21 additions, 0 deletionssrc/slurmctld/step_mgr.c
- src/slurmdbd/proc_req.c 7 additions, 0 deletionssrc/slurmdbd/proc_req.c
Loading
Please register or sign in to comment