Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions packages/core/src/awsService/ec2/explorer/ec2ParentNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,19 @@ export class Ec2ParentNode extends AWSTreeNodeBase {
)
}

private updatePendingNodes() {
this.pollingSet.forEach(async (instanceId) => {
private async updatePendingNodes() {
for (const instanceId of this.pollingSet.values()) {
const childNode = this.ec2InstanceNodes.get(instanceId)!
await childNode.updateStatus()
if (!childNode.isPending()) {
this.pollingSet.delete(instanceId)
await childNode.refreshNode()
}
})
await this.updatePendingNode(childNode)
}
}

private async updatePendingNode(node: Ec2InstanceNode) {
await node.updateStatus()
if (!node.isPending()) {
this.pollingSet.delete(node.InstanceId)
await node.refreshNode()
}
}

public async clearChildren() {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/test/techdebt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ describe('tech debt', function () {
// Monitor telemtry to determine removal or snooze
// toolkit_showNotification.id = sessionSeparation
// auth_modifyConnection.action = deleteProfile OR auth_modifyConnection.source contains CodeCatalyst
fixByDate('2024-9-30', 'Remove the edge case code from the commit that this test is a part of.')
fixByDate('2024-10-30', 'Remove the edge case code from the commit that this test is a part of.')
})
})
Loading