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

Agreement should be terminated after activity fails #274

Closed
azawlocki opened this issue Feb 26, 2021 · 5 comments
Closed

Agreement should be terminated after activity fails #274

azawlocki opened this issue Feb 26, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@azawlocki
Copy link
Contributor

azawlocki commented Feb 26, 2021

Currently an agreement is reused after

  • activity creation fails, e.g. due to timeout error (HTTP 408)
  • there's an error after an activity is created, either in the user's code in the worker function, an API error occurs or a command fails on the provider

In both cases, the agreement should be terminated.

It's probably also a good idea to take this into the account when scoring new offers from the same provider.

EDIT: Added a log from blender.py run in which an agreement is created with a faulty provider for which every attempt to create an activity ends with a TimeoutError. The agreement is reused and the requestor repeatedly tries to create an activity on this provider.
blender-yapapi-reusing-bad-agreement.log.gz

@azawlocki azawlocki changed the title Terminate agreement after activity fails Agreement should be terminated after activity fails Feb 26, 2021
@azawlocki azawlocki added the bug Something isn't working label Feb 26, 2021
@shadeofblue shadeofblue reopened this Mar 8, 2021
@tworec
Copy link
Contributor

tworec commented Mar 22, 2021

It's probably also a good idea to take this into the account when scoring new offers from the same provider.

Do you mean "local reputation" ? 👍

@azawlocki
Copy link
Contributor Author

azawlocki commented Mar 24, 2021

@nieznanysprawiciel 's idea: distinguish "provider errors" (e.g. timeout when creating activity) and "command errors" when deciding whether to terminate agreement (or give the provider a second chance).

@shadeofblue
Copy link
Contributor

It's probably also a good idea to take this into the account when scoring new offers from the same provider.

Do you mean "local reputation" ? 👍

more like run-local ;)

@shadeofblue
Copy link
Contributor

@azawlocki anyway, is this done or does it need more love?

@azawlocki
Copy link
Contributor Author

Resolved by #294

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants