TAPQuerySetRunner#
- class mobu.services.business.tapquerysetrunner.TAPQuerySetRunner(*, options, user, events, logger, flock)#
Bases:
TAPBusinessRun queries from a predefined set against TAP with random parameters.
- Parameters:
options (
TAPQuerySetRunnerOptions) – Configuration options for the business.user (
AuthenticatedUser) – User with their authentication token to use to run the business.events (
Events) – Event publishers.logger (
BoundLogger) – Logger to use to report the results of business.flock (
str|None) – Flock that is running this business, if it is running in a flock.
Methods Summary
Choose a random query from the query set.
startup()Run before the start of the first iteration and then not again.
Methods Documentation
- get_next_query()#
Choose a random query from the query set.
- Returns:
Next TAP query to run.
- Return type: