File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ async fn main() -> Result<()> {
60
60
log:: error!( "Error checking services: {:?}" , err) ;
61
61
panic!( "Service check failed." )
62
62
}
63
+ log:: warn!( "Using models: {:#?}" , config. workflows. models) ;
63
64
config
64
65
}
65
66
}
@@ -68,9 +69,8 @@ async fn main() -> Result<()> {
68
69
. await
69
70
. wrap_err ( "error during service checks" ) ?;
70
71
71
- log:: warn!( "Using models: {:#?}" , config. workflows. models) ;
72
72
if !token. is_cancelled ( ) {
73
- // launch the node
73
+ // launch the node in a separate thread
74
74
let node_token = token. clone ( ) ;
75
75
let node_handle = tokio:: spawn ( async move {
76
76
match DriaComputeNode :: new ( config, node_token) . await {
@@ -92,6 +92,8 @@ async fn main() -> Result<()> {
92
92
log:: error!( "Node handle error: {}" , err) ;
93
93
panic ! ( "Could not exit Node thread handle." ) ;
94
94
} ;
95
+ } else {
96
+ log:: warn!( "Not launching node due to early exit." ) ;
95
97
}
96
98
97
99
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments