Skip to content

Commit

Permalink
Send warning when failing to upload mission
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind authored and aeshub committed Jun 3, 2023
1 parent db7362c commit a8d0c12
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/isar/storage/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ def run(self) -> None:

inspection, mission = self.upload_queue.get(timeout=1)

if not mission:
self.logger.warning(
"Failed to upload missing mission from upload queue"
)
continue

# If new item from thread queue, add one per handler to internal queue:
for storage_handler in self.storage_handlers:
new_item: UploaderQueueItem = UploaderQueueItem(
Expand Down

0 comments on commit a8d0c12

Please sign in to comment.