Skip to content

[IMP] queue_job: Handle TypeError when JSON-encoding context.#936

Open
amh-mw wants to merge 1 commit into
OCA:18.0from
amh-mw:18.0-encode-object-as-null
Open

[IMP] queue_job: Handle TypeError when JSON-encoding context.#936
amh-mw wants to merge 1 commit into
OCA:18.0from
amh-mw:18.0-encode-object-as-null

Conversation

@amh-mw

@amh-mw amh-mw commented May 19, 2026

Copy link
Copy Markdown
Member

This nulls out unencodable values when serializing the job context, instead of raising an error.

This nulls out unencodable values when serializing the job context, instead of raising an error.
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @guewen, @sbidoul,
some modules you are maintaining are being modified, check this out!

@amh-mw amh-mw marked this pull request as ready for review May 19, 2026 15:34
@amh-mw

amh-mw commented May 19, 2026

Copy link
Copy Markdown
Member Author

I am of the opinion that queue_job should not be in the context-management game, so this is an effort to increase durability when the context may not have been curated.

@sbidoul

sbidoul commented May 19, 2026

Copy link
Copy Markdown
Member

I don't know. I personally prefer fast and explicit failures than silent degradation that would be harder to diagnose.

What is the use case?

@amh-mw

amh-mw commented May 19, 2026

Copy link
Copy Markdown
Member Author

I'm currently running a variant of #768 where I ripped out all of the context management code. Then when I adopted queue_job_batch, I started getting JSON encoding errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants