Performance logging: push into development.py (i.e. remove from non-development servers)

This commit is contained in:
Klaas van Schelven
2024-05-22 17:06:21 +02:00
parent 9f53ba5a8f
commit 151af98559
5 changed files with 32 additions and 11 deletions

View File

@@ -248,7 +248,7 @@ class Foreman:
self.check_for_stopping() # check_for_stopping() right before taking on the work
# notes on task.delete() (mostly apply to task.delete in the except-statement above too)
# * no explicit transaction needed, autocommit is fine: we're the only ones touching this row in the DB
# * no explicit transaction needed, autocommit is fine: we're the only ones touching this row in the DB
# * delete-before-run is the implementation of our at-most-once guarantee
task.delete()
self.run_in_thread(task_id, function, *args, **kwargs)