Skip to content

Commit

Permalink
Merge PR #639 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by simahawk
  • Loading branch information
OCA-git-bot committed Mar 27, 2024
2 parents b0f5b60 + f859a4e commit 047c95a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions queue_job/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def _try_perform_job(self, env, job):
_logger.debug("%s started", job)

job.perform()
# Triggers any stored computed fields before calling 'set_done'
# so that will be part of the 'exec_time'
env["base"].flush()
job.set_done()
job.store()
env.flush_all()
Expand Down

0 comments on commit 047c95a

Please sign in to comment.