Skip to content

Commit f940d33

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e745bd7 commit f940d33

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

backend/workflow_manager/workflow_v2/execution.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,11 @@ def publish_initial_workflow_logs(self, total_files: int) -> None:
290290
)
291291

292292
def publish_final_workflow_logs(
293-
self, total_files: int, successful_files: int, failed_files: int, execution_id: str
293+
self,
294+
total_files: int,
295+
successful_files: int,
296+
failed_files: int,
297+
execution_id: str,
294298
) -> None:
295299
"""Publishes the final logs for the workflow.
296300
@@ -300,10 +304,10 @@ def publish_final_workflow_logs(
300304
self.publish_average_cost_log(
301305
execution_id=execution_id, total_files=successful_files
302306
)
303-
307+
304308
# To not associate final logs with a file execution
305309
self.file_execution_id = None
306-
310+
307311
self.publish_update_log(LogState.END_WORKFLOW, "1", LogComponent.STATUS_BAR)
308312
self.publish_update_log(
309313
LogState.SUCCESS, "Executed successfully", LogComponent.WORKFLOW

backend/workflow_manager/workflow_v2/workflow_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,12 @@ def process_input_files(
213213
execution_service.update_execution(ExecutionStatus.COMPLETED)
214214

215215
workflow_execution = execution_service.get_execution_instance()
216-
216+
217217
execution_service.publish_final_workflow_logs(
218218
total_files=total_files,
219219
successful_files=successful_files,
220220
failed_files=failed_files,
221-
execution_id=workflow_execution.id
221+
execution_id=workflow_execution.id,
222222
)
223223

224224
return workflow_execution

0 commit comments

Comments
 (0)