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

Patch/retry mechanism #171

Merged
merged 9 commits into from
Dec 21, 2023
Merged

Patch/retry mechanism #171

merged 9 commits into from
Dec 21, 2023

Conversation

picciama
Copy link
Contributor

@picciama picciama commented Dec 21, 2023

PR Checklist

  • This comment contains a description of changes (with reason)
  • Referenced issue is linked
  • If you've fixed a bug or added code that should be tested, add tests!
  • Documentation in docs is updated

Description of changes

changed retry order to avoid endless loop in case a request fails all attempts.
fail with warning to check config if no spectra files were found with given format in specified folder

Technical details

reordered logic, first try to get the next attempt, then add to the new unfinished tasks, so that the Stopiteration exception is thrown before the tasks is readded, resulting in the endless loop.

Additional context

@picciama picciama changed the base branch from development to main December 21, 2023 14:01
@picciama picciama linked an issue Dec 21, 2023 that may be closed by this pull request
@picciama picciama merged commit b6c81cd into main Dec 21, 2023
28 checks passed
@picciama picciama deleted the patch/retry_mechanism branch January 9, 2024 10:26
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.

Fail / warn if no spectra files are found
2 participants