Stopped sending information about earlier failed atempts in notifications
This commit is contained in:
parent
87da30ab93
commit
f9284286f8
@ -17,13 +17,7 @@ class NotifierThread(QueueThread):
|
||||
|
||||
def _process(self, item: Job):
|
||||
result = item.status
|
||||
notification = asdict(result)
|
||||
old_attempts = None
|
||||
if item.notification_status is not None:
|
||||
previous_attempts = item.notification_status.failures
|
||||
notification['previous_attempts'] = previous_attempts
|
||||
|
||||
notification = json.dumps(notification, default=str)
|
||||
notification = json.dumps(asdict(result), default=str)
|
||||
|
||||
self.logger.info('%s finished, %s',
|
||||
item.jobid, notification)
|
||||
|
Loading…
x
Reference in New Issue
Block a user