Noah Sarfati
07/18/2024, 1:02 PMNok Lam Chan
07/18/2024, 1:06 PMNok Lam Chan
07/18/2024, 1:09 PMNok Lam Chan
07/18/2024, 1:10 PMNoah Sarfati
07/18/2024, 1:12 PMJuan Luis
07/18/2024, 1:14 PMkedro run -p load_and_classify
if GET(<s3://results>)["post_processing"] == "a":
kedro run -p post_processing_a
else:
kedro run -p post_processing_b
Juan Luis
07/18/2024, 1:14 PMNoah Sarfati
07/18/2024, 1:16 PMNok Lam Chan
07/18/2024, 1:17 PMNoah Sarfati
07/18/2024, 1:17 PMNok Lam Chan
07/18/2024, 1:21 PMif result == "a":
trigger_kedro_pipeline_a
if result == "b":
trigger_kedro_pipeline_b
Within each Kedro pipeline, it is deterministic.Noah Sarfati
07/18/2024, 1:22 PMNok Lam Chan
07/18/2024, 1:24 PMNoah Sarfati
07/18/2024, 1:25 PMNoah Sarfati
07/18/2024, 1:30 PMNok Lam Chan
07/18/2024, 1:32 PMkedro run
2. Python API, which you usually create a session
first and then do a session.run
(it's what kedro run
do behind the scene anyway)Nok Lam Chan
07/18/2024, 1:33 PMsession.run()
would return a dictionary of free outputs
(sorry for the bad terminology it's hard to explains this precisely). But you can basically take this dictionary and do your python conditionsNoah Sarfati
07/18/2024, 1:34 PMNok Lam Chan
07/18/2024, 1:34 PMNoah Sarfati
07/18/2024, 1:35 PMNok Lam Chan
07/18/2024, 2:10 PMNoah Sarfati
07/18/2024, 4:18 PMMatthias Roels
07/18/2024, 8:01 PMkedro_env
with a specific global arg that is used in a before pipeline run hook that replaces the nodes to skip with a dummy node.
Itโs not really conditional based on node output like your example, but just wanted to share whatโs possibleNoah Sarfati
07/19/2024, 6:36 AMNoah Sarfati
07/19/2024, 6:46 AMNoah Sarfati
07/19/2024, 6:53 AMNok Lam Chan
07/19/2024, 9:46 AMcatalog.load(<dataset_name>)
. This is because during kedro run we try to optimise memory and throw away dataset as soon as they are not needed.Nok Lam Chan
07/19/2024, 9:47 AMOscar Villa
07/20/2024, 7:48 PMkedro run
tries to read pyproject.toml, but in App Engine the filesystem is in read-only mode. So, I was perusing the documentation and it looks like if creating the session with the argument save_on_close=False could solve it. Make it sense?Nok Lam Chan
07/21/2024, 12:56 AMOscar Villa
07/21/2024, 1:58 AMOscar Villa
07/21/2024, 2:08 AMJuan Luis
07/21/2024, 10:51 AMkedro
and kedro-telemetry
packages you have? (if kedro-telemetry
is not installed in GAE, please say so too)Oscar Villa
07/22/2024, 12:37 AMOscar Villa
07/22/2024, 9:41 PMJuan Luis
07/22/2024, 9:53 PMOscar Villa
07/22/2024, 9:58 PMJuan Luis
07/22/2024, 10:49 PMkedro-telemetry
is trying to modify your pyproject.toml
and then you observe that Read-only file system
error cc @Elena KhaustovaOscar Villa
07/22/2024, 11:10 PMJuan Luis
07/23/2024, 8:56 AM