Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to schedule batch job with reschedule and restart set to 0. #11

Open
FrancisRussell opened this issue Aug 11, 2023 · 1 comment

Comments

@FrancisRussell
Copy link

We are attempting to schedule a batch job with reschedule and restart set to zero. It seems that these values are not sent, possibly because they correspond to default values for integers. In practice, I believe a missing value will cause Nomad to use its own defaults whereas 0 is meaningful for both these values.

@bacongobbler
Copy link
Member

Thanks for the feedback.

Have you tried seeing whether changing the optionalEmitDefaultValues parameter to true would change this behaviour? By default, this is set to false by the C# generator.

You can try adding this paramter to config.json, then regenerate the client from source.

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

No branches or pull requests

2 participants