mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-06 14:38:12 +08:00
Merge pull request #148 from xoxzo/log-enqueue-id
Log id returned by broker
This commit is contained in:
+2
-1
@@ -51,7 +51,8 @@ def async(func, *args, **kwargs):
|
|||||||
if task.get('sync', False):
|
if task.get('sync', False):
|
||||||
return _sync(pack)
|
return _sync(pack)
|
||||||
# push it
|
# push it
|
||||||
broker.enqueue(pack)
|
enqueue_id = broker.enqueue(pack)
|
||||||
|
logger.info('Enqueued {}'.format(enqueue_id))
|
||||||
logger.debug('Pushed {}'.format(tag))
|
logger.debug('Pushed {}'.format(tag))
|
||||||
return task['id']
|
return task['id']
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user