ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

class documentation

class QueueWorkCommand(BaseCommand): (source)

View In Hierarchy

Run an asynchronous worker over prioritized logical queues.

Async Method handle Consume jobs until shutdown or a requested stopping condition.
Class Variable __slots__ Declare that this class introduces no additional instance slots.
Class Variable arguments Command-line argument declarations accepted by this command.
Class Variable description Consume queued jobs with retries and graceful shutdown..
Class Variable signature queue:work.
Class Variable timestamps Timestamps flag used by QueueWorkCommand.
async def handle(self, manager: IQueueManager) -> int: (source)

Consume jobs until shutdown or a requested stopping condition.

Parameters
manager:orionis.queues.contracts.manager.IQueueManagerQueue manager resolved from the current application container.
Returns
intZero after a clean stop or one for invalid queue settings.
__slots__: tuple = (source)

Declare that this class introduces no additional instance slots.

arguments: ClassVar[list[Argument]] = (source)

Command-line argument declarations accepted by this command.

description: str = (source)

Consume queued jobs with retries and graceful shutdown..

signature: str = (source)

queue:work.

timestamps: bool = (source)

Timestamps flag used by QueueWorkCommand.