Skip to content

Conversation

@raresgaia123
Copy link
Collaborator

Description

Due to timing issues when agents are periodically sending their resources, we need to refactor the way controller handles agent resources. Instead of having a polling mechanism from agents to send their resources using a fixed interval, now controller asks for resources whenever it needs them. For that reason, code was refactored to get agent resources whenever a start or update command is received. We added a mechanism that sends an rpc command to all agents then it will wait for all agents to return their resources before continuing with start or update. Did cleanup on polling code on agent and resources classes.

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change
  • Refactor
  • Documentation
  • Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

Due to timing issues when agents are periodically sending their resources, we need to refactor the way controller handles agent resources. Instead of having a polling mechanism from agents to send their resources using a fixed interval, now controller asks for resources whenever it needs them. For that reason, code was refactored to get agent resources whenever a start or update command is received. We added a mechanism that sends an rpc command to all agents then it will wait for all agents to return their resources before continuing with start or update. Did cleanup on polling code on agent and resources classes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant