TAPBusiness#
- class mobu.services.business.tap.TAPBusiness(*, options, user, events, logger, flock)#
-
Base class for business that executes TAP query.
This class modifies the core
Businessloop by providingstartup,execute, andshutdownmethods that know how to execute TAP queries. Subclasses must overrideget_next_queryto return the next query they want to execute.- Parameters:
options (
TypeVar(T, bound=TAPBusinessOptions)) – 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.
Methods Summary
dump()execute()Execute the core of each business loop.
Get the next TAP query to run.
run_query(query)Run a TAP query either synchronously or asynchronously.
startup()Run before the start of the first iteration and then not again.
Methods Documentation
- dump()#
- Return type:
- abstract get_next_query()#
Get the next TAP query to run.
- Returns:
TAP query as a string.
- Return type:
- async run_query(query)#
Run a TAP query either synchronously or asynchronously.