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

Add an input job validator function #11

Open
dfsnow opened this issue Aug 21, 2024 · 0 comments
Open

Add an input job validator function #11

dfsnow opened this issue Aug 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@dfsnow
Copy link
Member

dfsnow commented Aug 21, 2024

Add a function to the extraction pipeline that takes a job definition JSON/dictionary as input, then validates it against the criteria outlined in config/table_definitions.yaml. The goal is to raise exceptions early when passing jobs that are invalid for a given table.

Some possible checks to make:

  • min_year should always be <= max_year
  • Job batches should contain only a single job for a given table
  • Jobs are within the parameters outlined in config/table_definitions.yaml
  • taxyr values are numeric (and years)
  • cur values are one of Y, N, or D
@dfsnow dfsnow added the enhancement New feature or request label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant