|
Lines 1688-1693
_wait_for_any_task(slurmd_job_t *job, bool waitflag)
Link Here
|
| 1688 |
if (jobacct) { |
1688 |
if (jobacct) { |
| 1689 |
jobacctinfo_setinfo(jobacct, |
1689 |
jobacctinfo_setinfo(jobacct, |
| 1690 |
JOBACCT_DATA_RUSAGE, &rusage); |
1690 |
JOBACCT_DATA_RUSAGE, &rusage); |
|
|
1691 |
/* Since we currently don't track energy |
| 1692 |
usage per task (only per step). We take |
| 1693 |
into account only the last poll of the last task. |
| 1694 |
Odds are it is the only one with |
| 1695 |
information anyway, but just to be safe we |
| 1696 |
will zero out the previous value since this |
| 1697 |
one will over ride it. |
| 1698 |
If this ever changes in the future this logic |
| 1699 |
will need to change. |
| 1700 |
*/ |
| 1701 |
if (jobacct->energy.consumed_energy) |
| 1702 |
job->jobacct->energy.consumed_energy = 0; |
| 1691 |
jobacctinfo_aggregate(job->jobacct, jobacct); |
1703 |
jobacctinfo_aggregate(job->jobacct, jobacct); |
| 1692 |
jobacctinfo_destroy(jobacct); |
1704 |
jobacctinfo_destroy(jobacct); |
| 1693 |
} |
1705 |
} |