File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed
site/src/request_handlers Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,19 @@ use collector::api::next_artifact;
4
4
use std:: sync:: Arc ;
5
5
6
6
pub async fn handle_next_artifact ( ctxt : Arc < SiteCtxt > ) -> next_artifact:: Response {
7
+ // Temporarily disabled while we migrate to a new collector machine
7
8
// Prefer benchmarking released artifacts first
8
- match ctxt. missing_published_artifacts ( ) . await {
9
- Ok ( next_artifact) => {
10
- if let Some ( next_artifact) = next_artifact. into_iter ( ) . next ( ) {
11
- log:: debug!( "next_artifact: {next_artifact}" ) ;
12
- return next_artifact:: Response {
13
- artifact : Some ( next_artifact:: NextArtifact :: Release ( next_artifact) ) ,
14
- } ;
15
- }
16
- }
17
- Err ( error) => log:: error!( "Failed to fetch missing artifacts: {error:?}" ) ,
18
- }
9
+ // match ctxt.missing_published_artifacts().await {
10
+ // Ok(next_artifact) => {
11
+ // if let Some(next_artifact) = next_artifact.into_iter().next() {
12
+ // log::debug!("next_artifact: {next_artifact}");
13
+ // return next_artifact::Response {
14
+ // artifact: Some(next_artifact::NextArtifact::Release(next_artifact)),
15
+ // };
16
+ // }
17
+ // }
18
+ // Err(error) => log::error!("Failed to fetch missing artifacts: {error:?}"),
19
+ // }
19
20
20
21
let next_commit = ctxt. missing_commits ( ) . await . into_iter ( ) . next ( ) ;
21
22
You can’t perform that action at this time.
0 commit comments