No Journal if pipeline is run through the session
See original GitHub issueDescription
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 kedroorkedro -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:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi @selalamiTF! We’ll be replacing most of the
Journalfunctionality with Kedro experiment tracking. This new feature is still in development so not all functionality has been released yet.What is the alternative if we want to log the information in the journal ?