@@ -8,7 +8,8 @@ use crate::{
88 BENCHMARK_JOB_STATUS_IN_PROGRESS_STR , BENCHMARK_JOB_STATUS_QUEUED_STR ,
99 BENCHMARK_REQUEST_MASTER_STR , BENCHMARK_REQUEST_RELEASE_STR ,
1010 BENCHMARK_REQUEST_STATUS_ARTIFACTS_READY_STR , BENCHMARK_REQUEST_STATUS_COMPLETED_STR ,
11- BENCHMARK_REQUEST_STATUS_IN_PROGRESS_STR , BENCHMARK_REQUEST_TRY_STR ,
11+ BENCHMARK_REQUEST_STATUS_IN_PROGRESS_STR , BENCHMARK_REQUEST_STATUS_WAITING_FOR_ARTIFACTS_STR ,
12+ BENCHMARK_REQUEST_TRY_STR ,
1213} ;
1314use anyhow:: Context as _;
1415use chrono:: { DateTime , TimeZone , Utc } ;
@@ -1491,7 +1492,7 @@ where
14911492 & benchmark_request. parent_sha ( ) ,
14921493 & benchmark_request. pr ( ) . map ( |it| * it as i32 ) ,
14931494 & benchmark_request. commit_type ,
1494- & benchmark_request. status ,
1495+ & benchmark_request. status . as_str ( ) ,
14951496 & benchmark_request. created_at ,
14961497 & benchmark_request. backends ,
14971498 & benchmark_request. profiles ,
@@ -1572,9 +1573,9 @@ where
15721573 & [
15731574 & sha,
15741575 & parent_sha,
1575- & BenchmarkRequestStatus :: ArtifactsReady ,
1576+ & BENCHMARK_REQUEST_STATUS_ARTIFACTS_READY_STR ,
15761577 & ( pr as i32 ) ,
1577- & BenchmarkRequestStatus :: WaitingForArtifacts ,
1578+ & BENCHMARK_REQUEST_STATUS_WAITING_FOR_ARTIFACTS_STR ,
15781579 ] ,
15791580 )
15801581 . await
@@ -1693,7 +1694,7 @@ where
16931694 & backend,
16941695 & profile,
16951696 & ( benchmark_set as i32 ) ,
1696- & BenchmarkJobStatus :: Queued ,
1697+ & BENCHMARK_JOB_STATUS_QUEUED_STR ,
16971698 ] ,
16981699 )
16991700 . await
@@ -1929,11 +1930,9 @@ macro_rules! impl_to_postgresql_via_to_string {
19291930}
19301931
19311932impl_to_postgresql_via_to_string ! ( BenchmarkRequestType ) ;
1932- impl_to_postgresql_via_to_string ! ( BenchmarkRequestStatus ) ;
19331933impl_to_postgresql_via_to_string ! ( Target ) ;
19341934impl_to_postgresql_via_to_string ! ( CodegenBackend ) ;
19351935impl_to_postgresql_via_to_string ! ( Profile ) ;
1936- impl_to_postgresql_via_to_string ! ( BenchmarkJobStatus ) ;
19371936
19381937#[ cfg( test) ]
19391938mod tests {
0 commit comments