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

Task rewrite: adopt AggregatorTask in taskprov #2019

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

tgeoghegan
Copy link
Contributor

Stacked on #2018

Adopts janus_aggregator_core::task::AggregatorTask in the taskprov module and code that uses it in janus_aggregator.

Of particular interest is that we do away with
janus_aggregator_core::taskprov::Task and instead represent taskprov tasks as a janus_aggregator_core::task::Task with AggregatorTaskParameters::TaskProvHelper. Hopefully we'll be able to further unify handling of taskprov and regular tasks in the future.

Part of #1524

@tgeoghegan tgeoghegan requested a review from a team as a code owner September 29, 2023 03:20
Comment on lines -269 to -271
/// Newtype for [`task::Task`], which omits certain fields that aren't required for taskprov tasks.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Task(pub(super) task::Task);
Copy link
Contributor

Choose a reason for hiding this comment

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

Good riddance!

aggregator/src/aggregator.rs Show resolved Hide resolved
Base automatically changed from timg/new-task-query-type to main September 29, 2023 17:02
Adopts `janus_aggregator_core::task::AggregatorTask` in the `taskprov`
module and code that uses it in `janus_aggregator`.

Of particular interest is that we do away with
`janus_aggregator_core::taskprov::Task` and instead represent taskprov
tasks as a `janus_aggregator_core::task::Task` with
`AggregatorTaskParameters::TaskProvHelper`. Hopefully we'll be able to
further unify handling of taskprov and regular tasks in the future.

Part of #1524
@tgeoghegan tgeoghegan enabled auto-merge (squash) September 29, 2023 17:07
@tgeoghegan tgeoghegan merged commit b2fc735 into main Sep 29, 2023
8 checks passed
@tgeoghegan tgeoghegan deleted the timg/new-task-taskprov branch September 29, 2023 18:17
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.

None yet

2 participants