Skip to content

Commit

Permalink
Merge pull request #300 from hotosm/hotfix/task-completed
Browse files Browse the repository at this point in the history
[hotfix]: reslove project completed status after images processing
  • Loading branch information
nrjadkry authored Oct 18, 2024
2 parents 321a596 + 6adf0de commit ad102a4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/backend/app/projects/image_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def process_images_from_s3(self, bucket_name, name=None, options=[], webhook=Non
pass


def download_and_upload_assets_from_odm_to_s3(
async def download_and_upload_assets_from_odm_to_s3(
db: Connection,
node_odm_url: str,
task_id: str,
Expand Down Expand Up @@ -231,8 +231,7 @@ def download_and_upload_assets_from_odm_to_s3(
log.info(f"Assets for task {task_id} successfully uploaded to S3.")

# Update background task status to COMPLETED
update_task_status_sync = async_to_sync(task_logic.update_task_state)
update_task_status_sync(
await task_logic.update_task_state(
db,
dtm_project_id,
dtm_task_id,
Expand Down

0 comments on commit ad102a4

Please sign in to comment.