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(Prover CLI): Batch proof compression job status #1789

Merged
merged 10 commits into from
Apr 25, 2024

Conversation

ilitteri
Copy link
Contributor

@ilitteri ilitteri commented Apr 25, 2024

What ❔

Handles the batch proof compression status for the status batch command.

Why ❔

A user that will do maintenance on the prover could find useful to see the batch proof compression job status.

Example

cd prover/prover_cli
zk f cargo run --release  status batch -n 1

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zk fmt and zk lint.
  • Spellcheck has been run via zk spellcheck.
  • Linkcheck has been run via zk linkcheck.

)
.fetch_optional(self.storage.conn())
.await
.unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can use a map here for this one, very similar to get_oldest_not_compressed_batch approach.

Copy link
Contributor

@EmilLuta EmilLuta left a comment

Choose a reason for hiding this comment

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

Overall LGTM. Left a nit.

Copy link
Contributor

@Artemka374 Artemka374 left a comment

Choose a reason for hiding this comment

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

LGTM, like the emojis, hehe

@@ -229,3 +230,33 @@ impl FromStr for GpuProverInstanceStatus {
}
}
}

#[derive(Debug, EnumString, Display)]
pub enum ProofCompressionJobStatus {
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't there a similar enum in types? May we reuse it here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes! This is the one that you are talking about, I just moved it to the right module.

@ilitteri ilitteri merged commit 6ec0ac3 into prover_cli_status_command Apr 25, 2024
6 of 9 checks passed
@ilitteri ilitteri deleted the prover_cli_compressor_status branch April 25, 2024 20:40
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