Skip to content

Commit 9e2dffd

Browse files
committed
Send job kind to the frontend
1 parent 37d25e4 commit 9e2dffd

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

site/frontend/src/pages/status_new/data.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ export type BenchmarkRequest = {
1414
};
1515

1616
export type BenchmarkJobStatus = "Queued" | "InProgress" | "Success" | "Failed";
17+
export type BenchmarkJobKind = "compiletime" | "runtimeInProgress" | "rustc";
1718

1819
export type BenchmarkJob = {
1920
requestTag: string;
21+
kind: BenchmarkJobKind;
2022
target: string;
2123
backend: string;
2224
profile: string;

site/src/api.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ pub mod status_new {
438438
#[serde(rename_all = "camelCase")]
439439
pub struct BenchmarkJob {
440440
pub request_tag: String,
441+
pub kind: String,
441442
pub target: String,
442443
pub backend: String,
443444
pub profile: String,

site/src/request_handlers/status_page_new.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ fn job_to_ui(job: &BenchmarkJob) -> status_new::BenchmarkJob {
231231

232232
status_new::BenchmarkJob {
233233
request_tag: job.request_tag().to_string(),
234+
kind: job.kind().to_string(),
234235
target: job.target().as_str().to_string(),
235236
backend: job.backend().as_str().to_string(),
236237
profile: job.profile().as_str().to_string(),

0 commit comments

Comments
 (0)