mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-23 00:58:11 +08:00
Log id returned by broker
This will make it easy to inspect broker directly for particular message.
This commit is contained in:
+2
-1
@@ -48,7 +48,8 @@ def async(func, *args, **kwargs):
|
||||
if task.get('sync', False):
|
||||
return _sync(pack)
|
||||
# push it
|
||||
broker.enqueue(pack)
|
||||
enqueue_id = broker.enqueue(pack)
|
||||
logger.info('Enqueued {}'.format(enqueue_id))
|
||||
logger.debug('Pushed {}'.format(tag))
|
||||
return task['id']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user