Skip to content

Commit 56c9028

Browse files
Fix file skipping while API-deloyment execution (#1230)
reolved file skipping while API-deloyment execution
1 parent 52a32a8 commit 56c9028

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

backend/workflow_manager/endpoint_v2/destination.py

+3
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ def __init__(
7474
self.api_results: list[dict[str, Any]] = []
7575
self.queue_results: list[dict[str, Any]] = []
7676
self.execution_service = execution_service
77+
self.is_api: bool = (
78+
self.endpoint.connection_type == WorkflowEndpoint.ConnectionType.API
79+
)
7780

7881
def _get_endpoint_for_workflow(
7982
self,

backend/workflow_manager/workflow_v2/workflow_helper.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,11 @@ def _process_file(
229229
workflow_file_execution.update(file_hash=file_content_hash)
230230

231231
# Ensure no duplicate file processing
232-
if FileHistoryHelper.get_file_history(
233-
workflow=workflow, cache_key=file_content_hash
232+
if (
233+
FileHistoryHelper.get_file_history(
234+
workflow=workflow, cache_key=file_content_hash
235+
)
236+
and not destination.is_api
234237
):
235238
logger.info(f"Skipping '{file_name}', already processed.")
236239
execution_service.publish_log(

0 commit comments

Comments
 (0)