Skip to content

Commit

Permalink
fixed docs and removed unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
stikkireddy committed Aug 4, 2023
1 parent 763a86c commit 62dee19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion brickflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,10 @@ def setup_logger(name=None):


_ilog = setup_logger("brickflow-internal")
_ilog.setLevel(logging.ERROR)
"""logger for internal logging please do not use outside of brickflow internal"""

_ilog.setLevel(logging.ERROR)

log = setup_logger()

from brickflow.context import ctx
Expand Down
4 changes: 1 addition & 3 deletions brickflow/codegen/databricks_bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,7 @@ def supported_types(self) -> List[SupportedResolverTypes]:

def _resolve(self, ref: ResourceReference) -> List[ImportBlock]:
blocks = []
jobs = [job for job in self.databricks_client.jobs.list(name=ref.name)]
if len(jobs) == 0:
return None
jobs = list(self.databricks_client.jobs.list(name=ref.name))

for job in jobs:
if job.settings is None or job.settings.tags is None:
Expand Down

0 comments on commit 62dee19

Please sign in to comment.