Modify a copy of the context when pushing into the queue

issue9549
review327901002
This commit is contained in:
Cédric Krier committed 2020-08-29 18:26:14 +02:00
1 parent 261c7b0a52
commit 642bd01520
1 file changed
+1 -1
+1 -1
View File
@@ -211,7 +211,7 @@ class _Method(object):
def __call__(self, instances, *args, **kwargs):
transaction = Transaction()
context = transaction.context
context = transaction.context.copy()
name = context.pop('queue_name', 'default')
now = datetime.datetime.now()
scheduled_at = context.pop('queue_scheduled_at', None)