Update celery.py

This commit is contained in:
Curtis 2019-03-12 15:41:24 -07:00 committed by GitHub
parent f38e5b0879
commit c445297357
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ def sync_source(source):
:return:
"""
function = f"{__name__}.{sys._getframe().f_code.co_name}"
function = "{}.{}".format(__name__, sys._getframe().f_code.co_name)
task_id = celery.current_task.request.id
log_data = {
"function": function,