fr3fou
Explore posts from serversRelative 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
MDCMara's Developper Corner
•Created by fr3fou on 10/1/2024 in #🐕get-help
Images are pushed every time
9 replies
MDCMara's Developper Corner
•Created by fr3fou on 9/20/2024 in #🐕get-help
Plugin publishes unshared notes
I have a note which links to another note which doesn't have a
share: true
property. For some reason, however, the plugin keeps pushing the linked notes (at the root of the repo).
Here's my config
96 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
MDCMara's Developper Corner
•Created by fr3fou on 6/2/2024 in #🐕get-help
Is it possible to somehow publish assets without a note?
I want to make an image gallery with all the images stored in Obsidian in different folders, e.g.
Nature/
Urban/
Interior/
etc. I want to simply push all the assets into the respective folder into my GitHub repo without a note referencing them.3 replies
MDCMara's Developper Corner
•Created by fr3fou on 5/27/2024 in #🐕get-help
Refresh all published notes doesn't seem to work
44 replies
MDCMara's Developper Corner
•Created by fr3fou on 5/27/2024 in #🐕get-help
Folder path & filename replacer doesn't apply to Excalidraw svgs
4 replies