mirror of
https://github.com/norohind/jubilant-system-core.git
synced 2026-10-22 23:02:08 +03:00
Human friendly names for hooks threads
This commit is contained in:
1 file changed
+5
-1
+5
-1
@@ -55,4 +55,8 @@ class HookSystem:
|
||||
@staticmethod
|
||||
def _notify(operation_id, hooks: list[Hook]) -> None:
|
||||
for hook in hooks:
|
||||
threading.Thread(target=hook.update, args=(operation_id,)).start()
|
||||
threading.Thread(
|
||||
name=f'hook-{hook.__class__.__name__}-{operation_id}',
|
||||
target=hook.update,
|
||||
args=(operation_id,)
|
||||
).start()
|
||||
Reference in new issue
Block a user