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

Move everything related to fetching tasks from server into its own class #1107

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

eabatalov
Copy link
Contributor

This is the first PR where I simplify agent.py by splitting it into components with dedicated responsibilities and interfaces. There's going to be more.

Testing:

make check
make test

Contribution Checklist

  • If the python-sdk was changed, please run make fmt in python-sdk/.
  • [n/a] If the server was changed, please run make fmt in server/.
  • Make sure all PR Checks are passing.

while self._should_run:
try:
async for task in self._task_fetcher.run():
self._task_store.add_tasks([task])
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adding tasks one by one might look inefficient but I'm going to remove task_store in the upcoming PRs. Also I measured duration of make test command and it didn't change with this PR. So should be good.

@eabatalov eabatalov marked this pull request as ready for review December 13, 2024 19:37
This is the first PR where I simplify agent.py by splitting it into
components with dedicated responsibilities and interfaces.
There's going to be more.

Testing:

make check
make test
@eabatalov eabatalov merged commit 5eae3fa into main Dec 16, 2024
5 checks passed
@eabatalov eabatalov deleted the eugene-task-fetcher branch December 16, 2024 14:25
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