openflighthpc / flight-control

0 stars 0 forks source link

Record at risk compute unit cost in cost logs #55

Closed timalces closed 1 year ago

timalces commented 2 years ago

Currently cost logs only record the currency and the monetary cost. The cost in compute units, with an 'at risk' margin (risk_cost in CostLog) is calculated by the application when needed, based on the latest exchange rate, gbp to compute units conversion rate, and risk margin.

As the exchange rate and/or our conversions to compute units could change over time, we should instead calculate and include this figure in the cost logs as they are recorded.

This will require: