sifive / wake

The SiFive wake build tool
Other
86 stars 28 forks source link

rsc: Precalcuate job size as part of cron job #1614

Closed V-FEXrt closed 1 month ago

V-FEXrt commented 1 month ago

Recalculating the job size every time it is needed is very expensive. This was less of an issue when only being used for dashboarding but the size is also needed for eventual LRU eviction. This PR sets up a cron task to calculate and store the size of the job after the job has been inserted so that the calculated value can be used directly