mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-03 07:38:12 +08:00
Fix BadSignature after the default Django cache expires (#311)
* async_iter: fix BadSignature after the default Django cache expires * lint
This commit is contained in:
+3
-1
@@ -461,7 +461,9 @@ def async_iter(func, args_iter, **kwargs):
|
||||
# save the original arguments
|
||||
broker = options["broker"]
|
||||
broker.cache.set(
|
||||
f"{broker.list_key}:{iter_group}:args", SignedPackage.dumps(args_iter)
|
||||
f"{broker.list_key}:{iter_group}:args",
|
||||
SignedPackage.dumps(args_iter),
|
||||
timeout=None,
|
||||
)
|
||||
for args in args_iter:
|
||||
if not isinstance(args, tuple):
|
||||
|
||||
Reference in New Issue
Block a user