We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0378935 commit 9352f68Copy full SHA for 9352f68
packages/service-library/src/servicelib/redis/_distributed_locks_utils.py
@@ -1,6 +1,7 @@
1
import asyncio
2
import datetime
3
import logging
4
+import socket
5
from collections.abc import Awaitable, Callable
6
7
import arrow
@@ -38,7 +39,7 @@ def create_exclusive_periodic_task(
38
39
@exclusive(
40
client,
41
lock_key=f"lock:exclusive_periodic_task:{task_name}",
- lock_value=f"locked since {arrow.utcnow().format()} by {client.client_name}",
42
+ lock_value=f"locked since {arrow.utcnow().format()} by {client.client_name} on {socket.gethostname()}",
43
)
44
@periodic(interval=task_period)
45
async def _() -> None:
0 commit comments