Skip to content

job-runner: support JSON config#9198

Merged
Venefilyn merged 1 commit into
mainfrom
json-config
Jun 16, 2026
Merged

job-runner: support JSON config#9198
Venefilyn merged 1 commit into
mainfrom
json-config

Conversation

@allisonkarlitskaya

Copy link
Copy Markdown
Member

We're going to start generating dynamic configs and it's easier to do this with JSON than TOML.

We're going to start generating dynamic configs and it's easier to do
this with JSON than TOML.
Comment thread lib/aio/jobcontext.py
content = json.load(file)
else:
content = tomllib.load(file)
except (tomllib.TOMLDecodeError, json.JSONDecodeError) as exc:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With standard lib sure but we could depend on tomli-w.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to this PR though since this is just about JSON. But why not use tomllib? Was added in 3.11

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tomllib is readonly, isn't it?

@Venefilyn Venefilyn merged commit 26c5461 into main Jun 16, 2026
6 checks passed
@Venefilyn Venefilyn deleted the json-config branch June 16, 2026 12:38
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.

4 participants