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

vdk-core: Add flag to JobConfig in case config file is required #2521

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

doks5
Copy link
Contributor

@doks5 doks5 commented Aug 4, 2023

Currently, the vdk-core's JobConfig does not require the presense of a config file in a data job's repository. This works in general, but not for the vdk-control-cli's use-cases, where the presense of the config file is mandatory.

This change adds a should_fail_missing_config flag to JobConfig, which can be used when the presense of the config file is necessary. If the flag is set to True, and the config file is missing in the data job's folder, a VdkConfigurationError will be raised.

Testing Done: Added test

Currently, the vdk-core's JobConfig does not require the presense of a config file in a
data job's repository. This works in general, but not for the vdk-control-cli's use-cases,
where the presense of the config file is mandatory.

This change adds a `should_fail_missing_config` flag to JobConfig, which can be used when
the presense of the config file is necessary. If the flag is set to `True`, and the config
file is missing in the data job's folder, a VdkConfigurationError will be raised.

Testing Done: Added test

Signed-off-by: Andon Andonov <[email protected]>
@doks5 doks5 merged commit 60a7c69 into main Aug 7, 2023
@doks5 doks5 deleted the person/andonova/improve-job-config branch August 7, 2023 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants