mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-19 08:05:20 +00:00
logging
This commit is contained in:
1 parent
2422f6d0aa
commit
a49b8b4b74
1 file changed
+2
@@ -133,7 +133,9 @@ pub async fn process_job(args: ComfyProcessJobArgs<'_>) -> Result<JobSuccessResu
|
||||
for model in &models.dependency_tokens.comfy {
|
||||
let mut dep_path = model_dependencies.inference_command.mounts_directory.clone();
|
||||
dep_path = dep_path.join(model.location.clone());
|
||||
info!("Checking if path exists: {:?}", dep_path);
|
||||
if !dep_path.exists() {
|
||||
warn!("Path does not exist: {:?}", dep_path);
|
||||
download_file(model.url.clone(), dep_path.clone()).await.map_err(|e| ProcessSingleJobError::Other(e))?;
|
||||
info!("Downloaded model to {:?}", dep_path);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user