question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No Journal if pipeline is run through the session

See original GitHub issue

Description

When running a pipeline with session.run(), no entry is added in the journal. If the pipeline is run with context.run() an entry is added, but there is a warning that this method is going to be deprecated.
It also seems that kedro run in the console does not add an entry in the journal also.

Context

We have a visualisation for the past runs. We saw the deprecation warning, so I updated the code to use a session, but since then, no more entries.

Steps to Reproduce

Within kedro ipython:

>>> from pathlib import Path
>>> journal_path = context.config_loader.get("logging.yml")["handlers"]["journal_file_handler"]["base_dir"]
>>> num_files_before = len(list(Path(journal_path).iterdir()))
>>> session.run()
>>> assert len(list(Path(journal_path).iterdir())) == num_files_before
>>> context.run()
>>> assert len(list(Path(journal_path).iterdir())) == num_files_before + 1

Expected Result

The first assert should fail and a file should be added. The second one works as expected.

Actual Result

Both method should add an entry in the journal.

Your Environment

Include as many relevant details about the environment in which you experienced the bug:

  • Kedro version used (pip show kedro or kedro -V): kedro, version 0.17.3
  • Python version used (python -V): Python 3.8.8
  • Operating system and version: Ubuntu 20.04

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
merelchtcommented, Jan 7, 2022

Hi @selalamiTF! We’ll be replacing most of the Journal functionality with Kedro experiment tracking. This new feature is still in development so not all functionality has been released yet.

0reactions
selalamiTFcommented, Jan 7, 2022

What is the alternative if we want to log the information in the journal ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use Kedro with IPython and Jupyter Notebooks/Lab — Kedro 0.17.7 ...
To start a standalone IPython session, run the following command in the root directory of your Kedro project: kedro ipython. Copy to clipboard....
Read more >
Trouble at ACS - And at C&E News - Science
... a lot of the money comes from (the journals are most certainly not run at a loss, ... The ACS has enough...
Read more >
Biden Says Nord Stream 2 Pipeline Won't Go Forward if ...
In a press conference, President Biden said the U.S. would stop Nord Stream 2 – a pipeline to transport natural gas from Russia...
Read more >
Despite giant oil spill, push continues for more pipelines
The spill will be particularly difficult to clean up due to the type of oil that was being transported through the pipeline: tar...
Read more >
Pipeline and Gas Journal: My Home
Pipeline & Gas Journal (P&GJ) publishes a Buyer's Guide that is a valuable marketplace resource identifying key suppliers of products, equipment and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found