Job queue
Bases: EnqueueMixin
Job queue class which enqueues some jobs
Source code in mq/_queue.py
connection_parameters()
property
enqueue(f, *args, **kwargs)
async
Enqueue a function in mongo
Parameters:
Name | Type | Description | Default |
---|---|---|---|
f |
Callable[..., Any] | Coroutine | None
|
required | |
*args |
Any
|
()
|
|
**kwargs |
Any
|
{}
|
Returns:
Type | Description |
---|---|
JobCommand
|
JobCommand instance |