Log job success (#2118)

* Log job success

* Format with black
This commit is contained in:
Jack Kinsella 2024-08-25 15:39:29 +02:00 committed by GitHub
parent 193de26cff
commit d5e55ab95a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -1498,6 +1498,12 @@ class Worker(BaseWorker):
# self.execution.delete(pipeline) # type: ignore # self.execution.delete(pipeline) # type: ignore
pipeline.execute() pipeline.execute()
time_taken = job.ended_at - job.started_at
self.log.info(
'Successfully completed %s job in %ss on worker %s', job.description, time_taken, self.name
)
self.log.debug('Finished handling successful execution of job %s', job.id) self.log.debug('Finished handling successful execution of job %s', job.id)
break break
except redis.exceptions.WatchError: except redis.exceptions.WatchError: