Snappea 'worker done': display task name

for the important case of 'quickly eye-balling what-took-you-so-long'
this saves those eye-balls a lookup
This commit is contained in:
Klaas van Schelven
2025-02-20 21:30:57 +01:00
parent f6b2c8ffbf
commit 14d34807ca
2 changed files with 4 additions and 1 deletions

View File

@@ -187,7 +187,9 @@ class Foreman:
for connection in connections.all():
connection.close()
logger.info("Worker done in %.3fs", time.time() - t0)
logger.info(
'Worker done for "%s.%s" in %.3fs',
function.__module__, function.__name__, time.time() - t0)
self.workers.stopped(task_id)
self.worker_semaphore.release()