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

Change nihms-loader startDate arg to harvestMonths #101

Merged
merged 5 commits into from
Mar 14, 2024

Conversation

rpoet-jh
Copy link
Contributor

@rpoet-jh rpoet-jh commented Mar 13, 2024

This PR changes the nihms-loader startDate date argument to harvestMonths which is time period (number of months). Now instead of a date value, harvestMonths can be set to the number of months in the past to harvest the nihms data files. For example, to pull the past 3 months of nihms data, set --harvestMonths=3. This works better for scheduled batch execution.

@rpoet-jh rpoet-jh requested a review from tsande16 March 13, 2024 18:52
@rpoet-jh rpoet-jh self-assigned this Mar 13, 2024
@rpoet-jh rpoet-jh force-pushed the russ-811-nihms-start-duratin branch from 2e55053 to 9e2623e Compare March 13, 2024 20:29
@rpoet-jh rpoet-jh changed the title Change nihms-loader startDate arg to harvestDays Change nihms-loader startDate arg to harvestMonths Mar 14, 2024
To match nihms default value and to make arg help
clearer.
Copy link
Contributor

@tsande16 tsande16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Nice change to process using number of months instead of a start date.

Tested using mvn verify

Ran JAR locally and within in Docker using 3,6,12,13 months as parameters for the harvestMonths

@tsande16
Copy link
Contributor

Also tested without the harvestMonths argument, which ran the default of 12months.

@rpoet-jh rpoet-jh merged commit afac8ac into main Mar 14, 2024
2 checks passed
@rpoet-jh rpoet-jh deleted the russ-811-nihms-start-duratin branch August 1, 2024 18:03
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.

Add duration prop to compute startDate for nihms loader
2 participants