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

Option to raise error if 1 site fails #90

Open
peterdudfield opened this issue Sep 27, 2024 · 4 comments
Open

Option to raise error if 1 site fails #90

peterdudfield opened this issue Sep 27, 2024 · 4 comments
Labels
good first issue Good for newcomers

Comments

@peterdudfield
Copy link
Contributor

it would be good to raise an error if 1 sites fails

This could be done here

In the future we might want to group sites, so only raise an error, if critical sites fail

@peterdudfield peterdudfield added the good first issue Good for newcomers label Sep 27, 2024
@peterdudfield peterdudfield changed the title Option to Rasie error if 1 site fails Option to raise error if 1 site fails Sep 27, 2024
@Clemo97
Copy link

Clemo97 commented Dec 31, 2024

Hey @peterdudfield,
Happy New Year 🎉.
I'm working on this issue and want some clarification.
So an error should be raised the moment a pv site processing fails, thus stoping the main execution flow, or should it just store all the failures and then raise an error once all pv site processing is done?

@peterdudfield
Copy link
Contributor Author

Yea, store all failures, but carry on running. Then if num_successes>0 then it fails.
It would be great if this was optional and a environmental variable could turn this on or off.

@Clemo97
Copy link

Clemo97 commented Jan 4, 2025

That sounds like a good idea.
How about using the already implemented click library.
The user could add an argument at the end of the run command poetry run python forecast_inference/app.py --raise-on-failure

What do you think about this?

@peterdudfield
Copy link
Contributor Author

That sounds like a good idea. How about using the already implemented click library. The user could add an argument at the end of the run command poetry run python forecast_inference/app.py --raise-on-failure

What do you think about this?

great idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants