Skip to content

Commit

Permalink
fix fire_event calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel May committed Oct 26, 2021
1 parent 0762c04 commit 13c8c41
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions core/dbt/task/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,22 @@ def get_full_manifest(self):
with PARSING_STATE:
start_load_all = time.perf_counter()
projects = root_config.load_dependencies()
print_timestamped_line("Dependencies loaded")
fire_event(ManifestDependenciesLoaded())
loader = ManifestLoader(root_config, projects, macro_hook)
print_timestamped_line("ManifestLoader created")
fire_event(ManifestLoaderCreated())
manifest = loader.load()
print_timestamped_line("Manifest loaded")
fire_event(ManifestLoaded())
_check_manifest(manifest, root_config)
print_timestamped_line("Manifest checked")
fire_event(ManifestChecked())
manifest.build_flat_graph()
print_timestamped_line("Flat graph built")
fire_event(ManifestFlatGraphBuilt())
loader._perf_info.load_all_elapsed = (
time.perf_counter() - start_load_all
)

self.loader = loader
self.manifest = manifest
print_timestamped_line("Manifest loaded")
fire_event(ManifestLoaded())

def compile_manifest(self):
adapter = get_adapter(self.config)
Expand All @@ -86,10 +86,10 @@ def run(self):
fire_event(ParsingStart())
self.get_full_manifest()
if self.args.compile:
fire_event(ParsingCompiling)
fire_event(ParsingCompiling())
self.compile_manifest()
if self.args.write_manifest:
fire_event(ParsingWritingManifest)
fire_event(ParsingWritingManifest())
self.write_manifest()

self.write_perf_info()
Expand Down

0 comments on commit 13c8c41

Please sign in to comment.