@@ -22,7 +22,7 @@ def apply_async(self, args=None, kwargs=None, **options): # pylint: disable=arg
2222 Emit a log statement when the task is submitted.
2323 """
2424 result = super ().apply_async (args = args , kwargs = kwargs , ** options )
25- log .info ('Task {}[{}] submitted with arguments {}, {}' .format (
25+ log .info ('Task {}[{}] submitted with arguments {}, {}' .format ( # pylint: disable=consider-using-f-string
2626 self .name ,
2727 result .id ,
2828 args ,
@@ -35,11 +35,19 @@ def on_retry(self, exc, task_id, args, kwargs, einfo):
3535 Capture the exception that caused the task to be retried, if any.
3636 """
3737 super ().on_retry (exc , task_id , args , kwargs , einfo )
38- log .warning ('[{}] retried due to {}' .format (task_id , getattr (einfo , 'traceback' , None )))
38+ log .warning (
39+ '[{}] retried due to {}' .format ( # pylint: disable=consider-using-f-string
40+ task_id , getattr (einfo , 'traceback' , None )
41+ )
42+ )
3943
4044 def on_failure (self , exc , task_id , args , kwargs , einfo ):
4145 """
4246 Capture the exception that caused the task to fail, if any.
4347 """
44- log .error ('[{}] failed due to {}' .format (task_id , getattr (einfo , 'traceback' , None )))
48+ log .error (
49+ '[{}] failed due to {}' .format ( # pylint: disable=consider-using-f-string
50+ task_id , getattr (einfo , 'traceback' , None )
51+ )
52+ )
4553 super ().on_failure (exc , task_id , args , kwargs , einfo )
0 commit comments