Skip to content

Commit a760927

Browse files
authored
Log the right amount of lint problems (#2024)
## Changes Log the right amount of lint problems, now it is less than the actual number. Incorrect message is introduced in #1956, fixing here.
1 parent c5ed423 commit a760927

File tree

1 file changed

+1
-1
lines changed
  • src/databricks/labs/ucx/source_code

1 file changed

+1
-1
lines changed

src/databricks/labs/ucx/source_code/jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ def refresh_report(self, sql_backend: SqlBackend, inventory_database: str):
298298
tasks.append(functools.partial(self.lint_job, job.job_id))
299299
logger.info(f"Running {tasks} linting tasks in parallel...")
300300
job_problems, errors = Threads.gather('linting workflows', tasks)
301-
logger.info(f"Saving {len(job_problems)} linting problems...")
302301
job_problems_flattened = list(itertools.chain(*job_problems))
302+
logger.info(f"Saving {len(job_problems_flattened)} linting problems...")
303303
sql_backend.save_table(
304304
f'{inventory_database}.workflow_problems',
305305
job_problems_flattened,

0 commit comments

Comments
 (0)