Skip to content

Make schema registration optional (default: off)#399

Merged
v1r3n merged 2 commits intomainfrom
feature/optional-schema-registration
Apr 20, 2026
Merged

Make schema registration optional (default: off)#399
v1r3n merged 2 commits intomainfrom
feature/optional-schema-registration

Conversation

@v1r3n
Copy link
Copy Markdown
Contributor

@v1r3n v1r3n commented Apr 19, 2026

Add register_schema flag to control whether JSON schemas are generated and registered alongside task definitions. Defaults to False so task registration doesn't require schema registry support on the server.

Configurable at multiple levels with clear precedence:
per-worker env > global env (conductor.worker.all) > decorator > Configuration > default (False)

  • Add register_schema param to @worker_task and @WorkerTask decorators
  • Add register_schema param to Configuration class
  • Add CONDUCTOR_REGISTER_SCHEMAS env var for global control
  • Add per-worker env var: conductor.worker.<name>.register_schema
  • Gate schema generation/registration in both sync and async task runners
  • Update existing tests, add new tests for all config levels

v1r3n and others added 2 commits April 19, 2026 10:16
Add `register_schema` flag to control whether JSON schemas are generated
and registered alongside task definitions. Defaults to False so task
registration doesn't require schema registry support on the server.

Configurable at multiple levels with clear precedence:
  per-worker env > global env (conductor.worker.all) > decorator > Configuration > default (False)

- Add `register_schema` param to `@worker_task` and `@WorkerTask` decorators
- Add `register_schema` param to `Configuration` class
- Add `CONDUCTOR_REGISTER_SCHEMAS` env var for global control
- Add per-worker env var: `conductor.worker.<name>.register_schema`
- Gate schema generation/registration in both sync and async task runners
- Update existing tests, add new tests for all config levels

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@v1r3n v1r3n merged commit 2ce1a54 into main Apr 20, 2026
1 check passed
@v1r3n v1r3n deleted the feature/optional-schema-registration branch April 20, 2026 18:44
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