wrench::ServerlessInvocationOrderingPolicy

class ServerlessInvocationOrderingPolicy

An abstract class to implement a serverless invocation ordering policy.

Subclassed by wrench::FCFSServerlessInvocationOrderingPolicy, wrench::RandomServerlessInvocationOrderingPolicy

Public Functions

virtual std::vector<std::shared_ptr<Invocation>> sortSchedulableInvocations(const std::shared_ptr<ServerlessSchedulingState> &scheduling_state, const std::vector<std::shared_ptr<Invocation>> &invocations) = 0

Method to sort the schedulable invocations.

Parameters:
  • scheduling_state – the scheduling state

  • invocations – the invocations

Returns:

a sorted list of invocations