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: complete v3 Aggregation APIs #424

Merged
merged 4 commits into from
Dec 3, 2024

Conversation

keroro520
Copy link
Contributor

This PR introduces several v3 Aggregation APIs, including Aggregation Cancel, Aggregation Report, Aggregation Prune API 👏

Note that, most of the works were done at #387 by @petarvujovic98 . This PR cherry-picks the changes from #387 and make some updates according to the latest codebase and discussion.

Here I list some differences. All of theses changes were commentted and discussed at #387 :

  1. Remove checking of empty proof of Aggregation Cancel request.

    For this case, querying task status will return None, and we will response with NotFound error directly.

  2. Remove metrics recording to maintain consistency with v1 and v2

  3. Check task status before signal cancel to prover

  4. No SQLite Task Manager implementations, as it was removed by feat(taskdb): remove sqlite task manager #423

petarvujovic98 and others added 3 commits November 29, 2024 10:48
Write in-memory implementation
Stub out sqlite implementation
All of theses changes were commentted and discussed at taikoxyz#387

1. Remove checking of empty proof of Aggregation Cancel request.

  For this case, querying task status will return None, and we will
response with NotFound error directly. See also taikoxyz#387 (comment)

2. Remove metrics recording to maintain consistency with v1 and v2

  See also taikoxyz#387 (comment)

3. Check task status before signal cancel to prover
Copy link
Contributor

@smtmfft smtmfft left a comment

Choose a reason for hiding this comment

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

LGTM! but we probably need some mock(smoke) test to test it. let's merge it first.

@keroro520
Copy link
Contributor Author

keroro520 commented Dec 3, 2024

LGTM! but we probably need some mock(smoke) test to test it. let's merge it first.

Yes
I'm working on it

@keroro520 keroro520 enabled auto-merge December 3, 2024 10:12
@keroro520 keroro520 added this pull request to the merge queue Dec 3, 2024
Merged via the queue into taikoxyz:main with commit 5dade7a Dec 3, 2024
14 checks passed
@keroro520 keroro520 deleted the feat-aggregation-cancel-api branch December 3, 2024 10:15
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.

3 participants