mirror of
https://github.com/bec-project/slurm_manager.git
synced 2026-12-02 05:58:03 +01:00
w
This commit is contained in:
1 parent
b9ad35a51d
commit
e2749f5bb7
1 file changed
+7
-1
@@ -11,6 +11,7 @@ import threading
|
||||
from dataclasses import dataclass
|
||||
from typing import Any, Callable
|
||||
from uuid import uuid4
|
||||
import traceback
|
||||
|
||||
from redis.client import Redis
|
||||
from redis.exceptions import RedisError
|
||||
@@ -175,8 +176,13 @@ class RedisSubClient:
|
||||
try:
|
||||
subscription.callback(message)
|
||||
except Exception:
|
||||
format_exc = traceback.format_exc()
|
||||
logger.error(
|
||||
"Error in callback for topic %s (subscription %s)", topic, subscription.id
|
||||
"Error in callback for topic %s (subscription %s) for callback %s. Traceback: %s",
|
||||
topic,
|
||||
subscription.id,
|
||||
subscription.callback,
|
||||
format_exc,
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in new issue
Block a user