Sumit Kumar Rai
04/29/2021, 10:11 AMKevin Kho
Sumit Kumar Rai
04/29/2021, 1:36 PMKevin Kho
@task
decorator to use it in Prefect. Prefect by design is non-invasive and cleanly wraps around your existing code.Sumit Kumar Rai
04/29/2021, 1:40 PMKevin Kho
Kevin Kho
ShellTask
as long as you install the dependenciesKevin Kho
ShellTask
. I think the approach would be to orchestrate the pipelinewise stuff through Prefect.Sumit Kumar Rai
04/29/2021, 1:56 PMKevin Kho
Kevin Kho
my-packaged-tap | target-postgresql -- config conf.json
Sumit Kumar Rai
04/29/2021, 2:06 PMShellTask
runs the command. But the dbt cli has to be somewhere, maybe it is already installed in the Prefect agent (I don't know).Kevin Kho
pipelinewise run_tap --tap mysql_sample --target snowflake
If you use it like this, Prefect can just call it with the shell task.Kevin Kho
Kevin Kho
Sumit Kumar Rai
04/29/2021, 2:09 PMSumit Kumar Rai
04/29/2021, 2:11 PMKevin Kho
Sumit Kumar Rai
04/29/2021, 2:18 PMKevin Kho
Sumit Kumar Rai
04/30/2021, 3:34 AMKevin Kho
dbt
itself in the container.