WorkerOptions under config has to be all lower case
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 661
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Description
This is due to a bug in Golang yaml:
https://github.com/go-yaml/yaml/issues/923
As feedback from a community user:
Note: we had a mistake to not adding yaml annotation, but even we added it, it still won't work well because all the fields under WorkerOptions are not annotated either.
So potential solutions:
- switch to a different yaml library that can work as expected like the cases in JSON
- duplicate the WorkerOptions from Temporal/Cadence SDK and add yaml annotation properly
- [less likely] ask temporal/cadence to add yaml annotations
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating WorkerOptions and the configuration decoding path; compare the YAML behavior with the JSON cases described in the issue and review go-yaml/yaml issue #923. Done means a maintainer-selected solution makes mixed-case fields under WorkerOptions load correctly, with coverage for the reported configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100