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

Handle errors raised in batch.prepare() in process_batches() #530

Merged
merged 1 commit into from
Jul 7, 2021

Conversation

azawlocki
Copy link
Contributor

Certain errors can be raised in a call to batch.prepare(), for example errors originating in yapapi's gftp storage driver.

Such errors should be caught in Golem.process_batches() and thrown into a command generator, especially in Services API (a command generator in this case is Cluster._run_instance()). Otherwise, a service instance would become detached from the handler function and stuck in the state in which the error occurred -- this happens in issue #519.

@azawlocki azawlocki requested a review from a team July 6, 2021 15:00
@azawlocki azawlocki force-pushed the az/handle-batch-prepare-errors branch from 6490723 to debc6a0 Compare July 6, 2021 16:08
@azawlocki azawlocki self-assigned this Jul 7, 2021
@azawlocki azawlocki requested a review from shadeofblue July 7, 2021 08:44
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.

2 participants