File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,12 @@ async fn main() -> anyhow::Result<()> {
75
75
// creating image scheduler
76
76
let image_scheduler = ImageScheduler :: new ( runner. clone ( ) ) ;
77
77
78
+ // yes, this will wait before starting the api, because after updates stuff
79
+ // can't be built without a new image
80
+ // we'll do this before the migrations because some need the new container
81
+ // already
82
+ image_scheduler. run_sync ( ) . await ;
83
+
78
84
// cleanup unfinished builds
79
85
if let Err ( e) = cleanup_unfinished ( & db) . await {
80
86
error ! ( "failed to cleanup unfinished builds: {e:#}" )
@@ -97,10 +103,6 @@ async fn main() -> anyhow::Result<()> {
97
103
. context ( format ! ( "failed to start schedule for package {}" , & package. base) ) ?;
98
104
}
99
105
100
- // yes, this will wait before starting the api, because after updates stuff
101
- // can't be built without a new image
102
- image_scheduler. run_sync ( ) . await ;
103
-
104
106
if config:: CONFIG . build_cli {
105
107
if let Err ( e) = package:: try_add_cli ( & db, & mut schedule, & srcinfo_generator) . await {
106
108
error ! ( "failed to add cli package: {e:#}" )
You can’t perform that action at this time.
0 commit comments