avid.actions.testingScheduler.TestingScheduler

class avid.actions.testingScheduler.TestingScheduler(scheduler=<avid.actions.simpleScheduler.SimpleScheduler object>, action_limit=10)

Bases: object

A helper scheduler for testing purposes that wraps a different scheduler and only passes on a specified number of actions. All the other actions are filtered out and will neither be skipped nor failed. :param scheduler: The primary scheduler that is to be wrapped. Needs to provide the method .execute(actionList) :param action_limit: The number of actions that should be passed through to the scheduler. (default: 10)

__init__(scheduler=<avid.actions.simpleScheduler.SimpleScheduler object>, action_limit=10)

Methods

__init__([scheduler, action_limit])

execute(actionList)