mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-10 03:37:51 +02:00
Fix
This commit is contained in:
@@ -145,7 +145,7 @@ def task(
|
||||
func.__name__ = name
|
||||
|
||||
call_func = functools.partial(
|
||||
call, func, retry=retry_policies, cache=cache_policy
|
||||
call, func, retry=retry_policies, cache_policy=cache_policy
|
||||
)
|
||||
object.__setattr__(call_func, "_is_pregel_task", True)
|
||||
return functools.update_wrapper(call_func, func)
|
||||
|
||||
@@ -251,7 +251,7 @@ def call(
|
||||
func,
|
||||
(args, kwargs),
|
||||
retry=retry,
|
||||
cache=cache_policy,
|
||||
cache_policy=cache_policy,
|
||||
callbacks=config["callbacks"],
|
||||
)
|
||||
return fut
|
||||
|
||||
Reference in New Issue
Block a user