SIAQuerySetRunner#

class mobu.services.business.siaquerysetrunner.SIAQuerySetRunner(*, options, user, events, logger, flock)#

Bases: Business

Run queries from a predefined set against SIA with random parameters.

Parameters:
  • options (SIAQuerySetRunnerOptions) – 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

dump()

execute()

Execute the core of each business loop.

get_next_query()

Get the next SIA query to run.

startup()

Run before the start of the first iteration and then not again.

Methods Documentation

dump()#
Return type:

SIABusinessData

async execute()#

Execute the core of each business loop.

Return type:

None

get_next_query()#

Get the next SIA query to run.

Returns:

SIA query as an SIAQuery object.

Return type:

mobu.models.business.siaquerysetrunner.SIAQuery

async startup()#

Run before the start of the first iteration and then not again.

Return type:

None