-
Notifications
You must be signed in to change notification settings - Fork 5
Open
akash-network/provider
#373Labels
repo/providerAkash provider-services repo issuesAkash provider-services repo issues
Description
Describe the bug
When a deployer closes a deployment on chain without creating a lease, the provider’s bid stays open. The provider should react to the closure and close the bid, but it does not.
Root cause: The chain emits EventDeploymentClosed and EventGroupClosed when a deployment is closed without a lease, but not EventOrderClosed. The provider only handled EventOrderClosed, so it never closed the bid in this case.
Fix: Handle EventGroupClosed in the bidengine order handler. When the event’s group matches the order’s group, the order is closed and the bid is cleaned up (unreserve, close bid).
To Reproduce
- Create a deployment (e.g.
akash tx deployment create deploy.yaml). - Wait for providers to bid.
- Close the deployment before creating a lease (
akash tx deployment close --dseq <dseq> --from <wallet> -y). - Observe that the provider’s bid remains open instead of being closed.
Expected behavior
When a deployment is closed without a lease, the provider should:
- Detect the closure via
EventGroupClosed - Close the order and bid
- Unreserve capacity
Additional context
- Provider component: bidengine (
bidengine/order.go) - Fix: Add handling for
*dv1.EventGroupClosedin the order event loop. Whenev.ID.Equals(o.orderID.GroupID()), close the order and run the normal cleanup (unreserve, close bid). - Event flow: On deployment close without lease, the chain emits
EventDeploymentClosed,EventGroupClosed, andEventBidClosed. The provider must handleEventGroupClosed(or equivalent) to close bids in this scenario.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
repo/providerAkash provider-services repo issuesAkash provider-services repo issues
Type
Projects
Status
Backlog (not prioritized)