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

Brewery - need Brewing background Service #52

Open
springframeworkguru opened this issue Feb 17, 2019 · 2 comments
Open

Brewery - need Brewing background Service #52

springframeworkguru opened this issue Feb 17, 2019 · 2 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@springframeworkguru
Copy link
Contributor

Need scheduled task to brew beer. If Inventory qty on hand is less than beer.qtyOnhand, brew quantityToBrew - update inventory. Use Spring tasks scheduler

@springframeworkguru springframeworkguru added the help wanted Extra attention is needed label Feb 17, 2019
@dfcoffin dfcoffin self-assigned this Feb 17, 2019
@dfcoffin
Copy link
Contributor

dfcoffin commented Feb 18, 2019

Shouldn't the task order beer to be brewed if the beer_inventory.quantity_on_hand is equal to or below the beer.min_on_hand, at which point the beer.quantity_to_brew should be scheduled?
(since we don't have the brewing process currently available, updating the inventory automatically is a temporary bridge, but beer should go through stages (could be defined as a time period).

How frequent should the re-order task check the current inventory?

@springframeworkguru
Copy link
Contributor Author

Yes - that's correct. We can run it every 30 seconds - it won't be that costly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants