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

Specific Job Runner as Runtime Argument #100

Merged
merged 6 commits into from
Nov 27, 2024
Merged

Specific Job Runner as Runtime Argument #100

merged 6 commits into from
Nov 27, 2024

Conversation

bh2smith
Copy link
Owner

@bh2smith bh2smith commented Nov 27, 2024

Adding specific job runtime argument.

Our arguments are becoming a bit more involved so they are moved out into args.py as a typed class. With a class method constructor. The main process now just loads args and config, then filters the jobs to run by args.jobs.

Closes #99

Test Plan

docker-compose up -d
python -m src.main --jobs d2p-test-1 p2d-test

@bh2smith bh2smith requested a review from mooster531 November 27, 2024 13:13
src/config.py Show resolved Hide resolved
@bh2smith bh2smith changed the title Single or Specific Job Runner as Runtime Argument Specific Job Runner as Runtime Argument Nov 27, 2024
@mooster531
Copy link
Collaborator

If our CLI needs to get any more complicated than this, I'd consider Click

@bh2smith bh2smith merged commit d9a7e65 into main Nov 27, 2024
3 checks passed
@bh2smith bh2smith deleted the 99/single-job branch November 27, 2024 18:16
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.

Allow running a single job (or a subset of jobs) via command line
2 participants