Skip to content

Commit 5d8f846

Browse files
committed
Rename env var and change output to make it clear it's coming from DISPATCH
1 parent 7ef0203 commit 5d8f846

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ serializable. That is, users should avoid using variables inside
214214
coroutines that cannot be pickled.
215215

216216
If a pickle error is encountered, serialization tracing can be enabled
217-
with the `DURABLE_TRACE=1` environment variable to debug the issue. The
217+
with the `DISPATCH_TRACE=1` environment variable to debug the issue. The
218218
stacks of coroutines and generators will be printed to stdout before
219219
the pickle library attempts serialization.
220220

src/dispatch/experimental/durable/function.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from . import frame as ext
1515
from .registry import RegisteredFunction, lookup_function, register_function
1616

17-
TRACE = os.getenv("DURABLE_TRACE", False)
17+
TRACE = os.getenv("DISPATCH_TRACE", False)
1818

1919
FRAME_CLEARED = 4
2020

@@ -114,7 +114,7 @@ def __getstate__(self):
114114
ip, sp, stack = None, None, None
115115

116116
if TRACE:
117-
print(f"\n[DURABLE] Serializing {self}:")
117+
print(f"\n[DISPATCH] Serializing {self}:")
118118
print(f"function = {rfn.fn.__qualname__} ({rfn.filename}:{rfn.lineno})")
119119
print(f"code hash = {rfn.hash}")
120120
print(f"args = {self.args}")

0 commit comments

Comments
 (0)