Emil Marcetta
11/22/2023, 8:01 PMNok Lam Chan
11/23/2023, 5:26 AMkedro run
?Nok Lam Chan
11/23/2023, 5:27 AMcli.py
into Kedro core, but the project specific one should still work.
I have an relatively old example with 0.18.0 that the cli.py
still work as expected. https://github.com/noklam/kedro_gallery/blob/master/kedro_cli_extension/src/kedro_cli_extension/cli.pyEmil Marcetta
11/23/2023, 10:46 PMkedro run
. What is interesting is if I we invoke some other command in our custom src<project>/cli.py
those command work. Only the kedro run
override stopped working for some reason. (our custom kedro run
has been running for a couple of years in production no problem)Emil Marcetta
11/23/2023, 10:47 PMrun -> runx
kedro runx
runs no problem.Emil Marcetta
11/23/2023, 11:11 PMkedro run
override works again! Thanks!
index 78ef0dc2..a0fd16d0 100755
--- a/src/data_science_cobalt_keepa_processing/cli.py
+++ b/src/data_science_cobalt_keepa_processing/cli.py
@@ -42,11 +42,6 @@ import requests
import structlog
from ddtrace import config as ddconfig
from ddtrace import patch_all, tracer
-from kedro.framework.cli import main as kedro_main
-from kedro.framework.cli.catalog import catalog as catalog_group
-from kedro.framework.cli.jupyter import jupyter as jupyter_group
-from kedro.framework.cli.pipeline import pipeline as pipeline_group
-from kedro.framework.cli.project import project_group
from kedro.framework.cli.utils import KedroCliError, env_option, split_string
from kedro.framework.session import KedroSession
from kedro.utils import load_obj
@@ -447,16 +442,3 @@ def cobalt_db_migrate():
with backend.lock():
# Apply any outstanding migrations
backend.apply_migrations(backend.to_apply(migrations))
-
-
-cli.add_command(pipeline_group)
-cli.add_command(catalog_group)
-cli.add_command(jupyter_group)
-
-for command in project_group.commands.values():
- cli.add_command(command)
Nok Lam Chan
11/24/2023, 7:40 AMrun
was defined twice.Emil Marcetta
11/24/2023, 5:33 PMcli:py::{commands}
were added to the “project_group” so re-adding the commands had not effect.