Skip to content

Commit

Permalink
limiting processed file pushing to mrq (#528)
Browse files Browse the repository at this point in the history
* limiting processed file pushing to mrq

* added log info while skip pushing data to MRQ
  • Loading branch information
vishnuszipstack authored Jul 29, 2024
1 parent e1fff33 commit fae5d4f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backend/workflow_manager/endpoint/destination.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ def handle_output(
file_name=file_name, error=error, result=result, meta_data=meta_data
)
elif connection_type == WorkflowEndpoint.ConnectionType.MANUALREVIEW:
if file_history:
logger.info(
f"Already processed result, skip adding to MRQ. "
f"WorkflowID{workflow.id}"
)
return
result = self.get_result(file_history)
meta_data = self.get_metadata(file_history)
self._push_to_queue(
Expand Down

0 comments on commit fae5d4f

Please sign in to comment.