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

@@ -45,6 +45,7 @@ Related utilities:
* DB indexes for the issue-lists (including filters)
* Don't 'eat your own dogfood' (send errors to backend) while running tests
* `delete_with_limit` was removed; this removes one tie-in to MySQL/Sqlite (See #21)
* Print task's name in Snappea log when "Done"
## 1.2.0 (11 February 2025)

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()