Skip to content

Specific Job Runner as Runtime Argument#100

Merged
bh2smith merged 6 commits intomainfrom
99/single-job
Nov 27, 2024
Merged

Specific Job Runner as Runtime Argument#100
bh2smith merged 6 commits intomainfrom
99/single-job

Conversation

@bh2smith
Copy link
Copy Markdown
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
Comment thread src/config.py
Comment thread tests/fixtures/config/invalid_names.yaml Outdated
@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
Copy Markdown
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
@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