Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/backend/app/projects/image_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,18 @@ async def process_assets_from_odm(
log.error(f"Error during processing for project {dtm_project_id}: {e}")

finally:
if task:
try:
log.info(f"Attempting to delete task {odm_task_id} from NodeODM.")
task.remove()
log.info(
f"Successful attempt at deleting task {odm_task_id} from NodeODM."
)
except Exception as e:
log.error(
f"Error occurred while cleaning up task {odm_task_id} from NodeODM: {e}."
)

if os.path.exists(output_file_path):
try:
shutil.rmtree(output_file_path)
Expand Down