Backfill config gen, and as-of date changes#286
Conversation
|
Thank you for your contribution @natemcintosh 🚀! Your pkgdown-site is ready for download 👉 here 👈! |
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
zsusswein
left a comment
There was a problem hiding this comment.
Is it worth putting the duplicated code here in a function and importing it? There seems to be quite a bit of logic here shared with existing stuff and it could be annoying to maintain.
I was waiting for someone to say this 😆. At what point do we make the |
kgostic
left a comment
There was a problem hiding this comment.
Approving so as not to hold you up, but I have some comments.
Most importantly, could you put your head together with @PatrickTCorbett to talk about how people are supposed to set up a run, and add some documentation?
Definitely out of scope for this PR, but what about sticking it in the STF package you're using for pool setup? Probably way more trouble than it's worth because it's a different format than what they do........... I do think this is maybe worth doing though. This feel worth hashing out in an issue? |
|
Summarizing f2f discussion. Nate had been waiting to merge until he figured out an issue with a flu run. |
|
I've figured out the issue with the Flu run. It was that the earliest |
This tracks with the issues I had with the RSV backfill run. Would setting as_of date like I did in the RSV run not fix this? |
|
As in setting it to the current date? I would, but in my testing of the API v2 data, we want everything (except the data) to match the original production runs, which means running with the parameters as-of date matching the report date. |
|
We should attempt to merge this PR and the matching one in the config generator at the same time. Both implement changes in the config generator API, and things will be broken if we do one without the others. Note that #328 will also require the PR in the config generator to be implemented before it can be merged. |
f552852 to
cf1185b
Compare
Nate's Summary
This aims to do issues:
It became clear that we needed to pass the job ids created during config generation to the job creation script. The options I could think of were:
job.pyfor each job id.job.pyin the same script as the backfill config generation.Option 2 felt much safer. Have tested this in Batch, and things run!
Example model output
You can see output from this in the
nssp-rt-testingstorage container, in the job ids starting withyour-backfill-name....Copilot's Summary
This pull request introduces a new feature for generating and running backfill configurations, along with various supporting changes. The most significant updates include adding a new script for backfill configuration, updating the
Makefileto include a command for running this script, and refining documentation and parameter handling in related files.New Feature: Backfill Configuration and Execution
azure/backfill_generate_and_run.pyto generate and upload configuration files for the EpiNow2 pipeline, and optionally execute tasks in Azure Batch. This includes detailed parameter handling, validation, and Azure integration.backfill-config-and-runcommand to theMakefileto streamline running the new backfill script. This provides an easy way to configure and execute backfill tasks.NEWS.mdto announce the new commands for generating backfill configurations.Improvements to Parameter Handling
as_of_dateparameter: Updated theas_of_dateparameter description inR/config.Rfor better clarity and alignment with its usage.generate_configs.pyadjustment: Modified theas_of_datecalculation to use the report date directly, ensuring consistency and simplifying logic. [1] [2]