-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(decider,chain-connector): support deal removal [fixes NET-515] #144
Conversation
.fluence/aqua/services.aqua
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a header to this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's generated by fcli. I can add it for tests or smth, but it'll be overridden in the next compilation.
@@ -0,0 +1,43 @@ | |||
module DealStatus declares * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
module DealStatus declares * | |
aqua DealStatus declares * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Every aqua file in this repo uses module
, not aqua
. I guess, we'll need to fix it in a separate PR.
But I like module
more than aqua
. In this repo, all aqua files but one is a library. I hate the idea of calling everything aqua
.
src/services/chain-connector/modules/chain_connector/src/chain/u256.rs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done!
Support deal removal when a developer ends a deal.
Note that we don't yet support cases when a compute provider exists a deal or when a developer kicks a compute provider from a deal.
Now, the decider polls statuses of deals and removes a deal when its status is
ended
. We add reactions to active/inactive statuses later.I checked deal removal with FCLI, local chain, and custom relay with the updated decider.
DID NOT remove the logic of a worker removal based on a mailbox message. Maybe need to.Disabled removal via mailbox, but left the code as an example