wrench::QueueSizeLimitFailingPolicy

class QueueSizeLimitFailingPolicy : public wrench::ServerlessInvocationFailingPolicy

A serverless scheduling invocation failing policy that never fails any schedulable invocation.

Public Functions

explicit QueueSizeLimitFailingPolicy(unsigned long queue_limit)

Constructor.

Parameters:

queue_limit – The schedulable queue size limit (>1, up to ULONG_MAX)

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

Method to pick schedulable invocations to fail.

Parameters:

scheduling_state – the scheduling state

Returns:

a set of invocations