From cf18c551a036d5f991ddbfe840ddb3721f612997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Alix?= Date: Mon, 8 Apr 2024 10:54:38 +0200 Subject: [PATCH] queue_job: fix warning when triggering stored computed fields Starting from 16.0, we should call `env.flush_all()` instead of `env["base"].flush()`, like it is done few lines below. --- queue_job/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queue_job/controllers/main.py b/queue_job/controllers/main.py index 0338c823c5..a93c644841 100644 --- a/queue_job/controllers/main.py +++ b/queue_job/controllers/main.py @@ -36,7 +36,7 @@ def _try_perform_job(self, env, job): job.perform() # Triggers any stored computed fields before calling 'set_done' # so that will be part of the 'exec_time' - env["base"].flush() + env.flush_all() job.set_done() job.store() env.flush_all()