# HG changeset patch # User RhodeCode Admin # Date 2023-01-31 08:26:54 # Node ID 49f6563fcd8f338e82c442e33ab1cbf8adb0ba57 # Parent 6b029be8c7e4df4044875d95655fb75170c9dfac tasks: improve logging on failed tasks diff --git a/rhodecode/lib/celerylib/loader.py b/rhodecode/lib/celerylib/loader.py --- a/rhodecode/lib/celerylib/loader.py +++ b/rhodecode/lib/celerylib/loader.py @@ -276,7 +276,11 @@ class RequestContextTask(Task): raise Exception( 'Unable to fetch required data from request: {}. \n' 'This task is required to be executed from context of ' - 'request in a webapp'.format(repr(req))) + 'request in a webapp. Task: {}'.format( + repr(req), + self + ) + ) if req: # we hook into kwargs since it is the only way to pass our data to