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

fix: premature system error state #143

Merged
merged 6 commits into from
Mar 9, 2023

Conversation

SohamRatnaparkhi
Copy link
Member

@SohamRatnaparkhi SohamRatnaparkhi commented Mar 8, 2023

IMPORTANT: Please create an issue before filing a pull request! Changes need to be discussed before proceeding. Please read the contribution guidelines.

Details

Resolves #139

When submission of the task to the best TES instance fails the state is set to SYSTEM_ERROR.Ideally, it should not set the state to SYSTEM_ERROR until the task submission fails on all the available TES instances.

To solve this, I moved the code-block which was specifically related to setting the error state to SYSTEM ERROR to the place which will only be touched if all the TES instances fail. But for every failed instance, a message will be logged.

Testing

NA

Documentation

NA

Style

My code adheres to coding convention of this project.

Closing issues

closes issue: #139

@SohamRatnaparkhi SohamRatnaparkhi marked this pull request as ready for review March 8, 2023 15:06
@uniqueg uniqueg changed the title refractor: error state declaration position fix: premature system error state Mar 8, 2023
Copy link
Member

@uniqueg uniqueg left a comment

Choose a reason for hiding this comment

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

Nice, thanks a lot. One minor suggestion.

pro_tes/ga4gh/tes/task_runs.py Outdated Show resolved Hide resolved
pro_tes/ga4gh/tes/task_runs.py Outdated Show resolved Hide resolved
@uniqueg uniqueg merged commit b96a005 into elixir-cloud-aai:dev Mar 9, 2023
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.

Task state set incorrectly when best TES instance fails
2 participants