fr3fou
Relative imported module doesn't respect optional/non-imported Python dependencies
I have the following file in
f/main/requirements.txt
:
I also have a script called f/main/get_db
, which only imports duckdb
:
Running wmill script generate-metadata
produces a script.lockfile for the get_db
script correctly:
(the pyarrow & polars dependencies are required if you want to convert duckdb results to a polars dataframe)
In my flow, f/main/my_flow
, inside an inline script, I import the get_db
module:
The generated lockfile, however, doesn't include the optional polars & pyarrow dependencies:
I've tried running wmill script generate-metadata
and wmill flow generate-locks
, but none of them seem to produce the desired output. A workaround is for me to include the pyarrow / polars dependencies in a comment in my inline script (under a extra_requirements
section), but this means that I have to pin 2 versions separately which is undesired.2 replies
What's the recommended way to run dbt transformations?
Currently migrating from a Prefect pipeline which uses https://github.com/datarootsio/prefect-dbt-flow and was wondering how I can run my dbt models in Windmill.
This library automatically makes a new Task/Node in the DAG for each dbt model. I'm not really sure what the best way is to pull your dbt files (.sql models & yaml configurations) into Windmill, as well as running them using the
dbt
CLI. One way I thought of is to package my dbt models (and dbt CLI tool) in a Docker image, which I would then pull from a private registry inside Windmill. This, however, won't handle the breaking-down-into-multiple-tasks (scripts in Windmill) part. Any ideas? I'm also considering trying sqlmesh but I've never used it, but I think it has a similar "deployment" model.2 replies
`ApiError: Internal Server Error` when writing a 2MB csv file
Using the
wmill.writeS3File
function to write a small csv file from ~20k lines and it seems to give this error.
If I try the same script with less data (thus making the file smaller), e.g. 5k csv lines it works fine. Upping it to 10k (it's ~1MB then), it still crashes.
I'm also confident that it's not the serialization that's failing and it is indeed the call to writeS3File
.
Running CE v1.365.0
, self hosted, Deno TypeScript, Self Hosted Minio3 replies