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

feat(decider,chain-connector): support deal removal [fixes NET-515] #144

Merged
merged 20 commits into from
Dec 7, 2023

Conversation

kmd-fl
Copy link
Collaborator

@kmd-fl kmd-fl commented Dec 4, 2023

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

@kmd-fl kmd-fl changed the title feat(decider,chain-connector): support deal removal when developer ends a deal feat(decider,chain-connector): support deal removal when developer ends a deal [fixes NET-515] Dec 4, 2023
Copy link

linear bot commented Dec 4, 2023

@kmd-fl kmd-fl requested review from folex and justprosh December 4, 2023 09:31
@kmd-fl kmd-fl changed the title feat(decider,chain-connector): support deal removal when developer ends a deal [fixes NET-515] feat(decider,chain-connector): support deal removal [fixes NET-515] Dec 4, 2023
Copy link
Contributor

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?

Copy link
Collaborator Author

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 *
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
module DealStatus declares *
aqua DealStatus declares *

Copy link
Collaborator Author

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.

Copy link
Member

@folex folex left a comment

Choose a reason for hiding this comment

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

Well done!

@kmd-fl kmd-fl added the e2e label Dec 5, 2023
@kmd-fl kmd-fl enabled auto-merge (squash) December 5, 2023 13:59
@kmd-fl kmd-fl merged commit ba849eb into main Dec 7, 2023
14 checks passed
@kmd-fl kmd-fl deleted the deal-remove branch December 7, 2023 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants