wrench::ServerlessInvocationFailingPolicy

class ServerlessInvocationFailingPolicy : public wrench::ServerlessSchedulingPolicy

An abstract class to implement a serverless scheduling invocation failing policy.

Subclassed by wrench::NeverFailServerlessInvocationFailingPolicy

Public Functions

virtual std::set<std::shared_ptr<Invocation>> failSchedulableInvocations(const std::shared_ptr<ServerlessSchedulingState> &scheduling_state) = 0

Method to pick schedulable invocations to fail.

Parameters:

scheduling_state – the scheduling state

Returns:

a set of invocations