Skip to content

[16.0][FIX] queue_job: rebind args/kwargs lazily to the job's current cursor#1

Draft
eantones wants to merge 2 commits into
16.0from
16.0-fix-queue_job-rebind-args-in-temporary-env-lazy
Draft

[16.0][FIX] queue_job: rebind args/kwargs lazily to the job's current cursor#1
eantones wants to merge 2 commits into
16.0from
16.0-fix-queue_job-rebind-args-in-temporary-env-lazy

Conversation

@eantones

@eantones eantones commented Jul 2, 2026

Copy link
Copy Markdown
Member

Lazy-shape alternative to the 16.0 args/kwargs rebinding fix, published for comparison. Not meant to merge here.

args/kwargs are stored in private attributes and exposed as properties that rebind any recordset inside to self.env.cr on access (cursor-only swap, uid/su/context are kept). in_temporary_env() stays a plain env swap. Same regression test as the eager shape.

@eantones eantones force-pushed the 16.0-fix-queue_job-rebind-args-in-temporary-env-lazy branch from 5194f7c to af4f40b Compare July 2, 2026 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants