Class faabric::batch_scheduler::DecisionCache

class DecisionCache

Repository for cached scheduling decisions. Object is not thread safe as we assume only a single executor will be caching decisions for a given function and size of batch request on one host at a time.

Public Functions

std::shared_ptr<CachedDecision> getCachedDecision(std::shared_ptr<faabric::BatchExecuteRequest> req)
void addCachedDecision(std::shared_ptr<BatchExecuteRequest> req, SchedulingDecision &decision)
void clear()