main commit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-10-16 16:30:25 +09:00
parent 91c7e04474
commit 537e7b363f
1146 changed files with 45926 additions and 77196 deletions

View File

@@ -9,7 +9,7 @@ import sys
import time
import warnings
from collections import namedtuple
from datetime import timedelta
from datetime import datetime, timedelta
from functools import partial
from weakref import WeakValueDictionary
@@ -460,7 +460,7 @@ class Backend:
state, traceback, request, format_date=True,
encode=False):
if state in self.READY_STATES:
date_done = self.app.now()
date_done = datetime.utcnow()
if format_date:
date_done = date_done.isoformat()
else:
@@ -833,11 +833,9 @@ class BaseKeyValueStoreBackend(Backend):
"""
global_keyprefix = self.app.conf.get('result_backend_transport_options', {}).get("global_keyprefix", None)
if global_keyprefix:
if global_keyprefix[-1] not in ':_-.':
global_keyprefix += '_'
self.task_keyprefix = f"{global_keyprefix}{self.task_keyprefix}"
self.group_keyprefix = f"{global_keyprefix}{self.group_keyprefix}"
self.chord_keyprefix = f"{global_keyprefix}{self.chord_keyprefix}"
self.task_keyprefix = f"{global_keyprefix}_{self.task_keyprefix}"
self.group_keyprefix = f"{global_keyprefix}_{self.group_keyprefix}"
self.chord_keyprefix = f"{global_keyprefix}_{self.chord_keyprefix}"
def _encode_prefixes(self):
self.task_keyprefix = self.key_t(self.task_keyprefix)
@@ -1082,7 +1080,7 @@ class BaseKeyValueStoreBackend(Backend):
)
finally:
deps.delete()
self.delete(key)
self.client.delete(key)
else:
self.expire(key, self.expires)