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 QueueClearCommand(BaseCommand): (source)
Clear every pending state from one logical queue.
| Async Method | handle |
Remove the selected queue's jobs and report the count. |
| 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 |
Delete ready, delayed, and reserved jobs from a queue.. |
| Class Variable | signature |
queue:clear. |
| Class Variable | timestamps |
Timestamps flag used by QueueClearCommand. |
Remove the selected queue's jobs and report the count.
| Parameters | |
manager:orionis.queues.contracts.manager.IQueueManager | Queue manager resolving the selected backend. |
| Returns | |
int | Zero on success or one for an invalid backend or queue. |