Back to bricks list
Introduction
Technical Documentation
Other Classes
Queue QueueService
Version

QueueService

Attributes

tick_is_running: bool

Functions

ADD_SCENARIO_TO_QUEUE - @classmethod

Add the scenario to the queue and run it when ready

:raises NotFoundException: [description] :raises BadRequestException: [description]

Parameters:
NameTypeDefault valueDescription
scenario_idstr
Return type:
Scenario
DEINIT - @classmethod
GET_QUEUE_JOBS - @classmethod
Return type:
List
INIT - @classmethod
Parameters:
NameTypeDefault valueDescription
tick_intervalint 60
daemonbool False
REMOVE_SCENARIO_FROM_QUEUE - @classmethod
Parameters:
NameTypeDefault valueDescription
scenario_idstr
Return type:
Scenario
SCENARIO_IS_IN_QUEUE - @classmethod
Parameters:
NameTypeDefault valueDescription
scenario_idstr
Return type:
bool