Windmill

W

Windmill

Join the community to ask questions about Windmill and get answers from other members.

Join

help

general

changelog

tag "chromium" doesn't work for my workflow

my code is working for test this step part, but in test flow or deployed test, It doens't work ans how me there is no executable path, can you teach me what is the problem?
No description

Delegating a scripts to another user

I'm creating a data handler in windmill web ide. When the user is logged in, the database to which their data goes is automatically inferred via a discovery service, causing the data to go to the specified database. If a user is manipulating data at the request of someone from another team, I want that data to go to the database of the user who requested it and not to the one who is manipulating it. In the settings of a script, in the metadata, it is not possible to delegate a script to another user (to make it as if another user was running the script) and I would like to know how I can do this in windmill web ide, using python with mongodb integration....

passing jwt secrets between django app and windmill via api

Hey all, i am trying to securely pass bearer tokens between my django app and windmill to authenticate API calls and create a hashed payload for data exchange. In my django app i am using python-jwt (import jwt). This doesnt seem to be compatible within windmill. Since jwt doesnt seem to be supported in Windmill, I tried creating a custom encode_jwt function in Windmill using hmac, hashlib, and base64 to match Django’s HS256 encoded JWTs. Despite this, the tokens still aren’t matching up as expected. I know in the documentation there are specifics that need to be passed from the windmill side in the payload, I do have those listed as part of the payload referencing this doc. Is there a better way to do this? I can do it in params if needed... After narrowing down, I think this might have to do with my middlware and how it's authorizing the call back from windmill to my django app. Maybe something to do with listing the user in windmill to then be authenticated as it comes into django. This would mean potentially setting up a windmill user model in my django database in order to be authenticated properly, i believe. I just cannot seem to bypass the "unauthorized header" piece that is set in my windmill script. Wondering if i'm just going about this incorrectly....
No description

Relative imported module doesn't respect optional/non-imported Python dependencies

I have the following file in f/main/requirements.txt :
duckdb==1.1.2
polars[pyarrow]==1.12.0
duckdb==1.1.2
polars[pyarrow]==1.12.0
...

windmill cache vs redis

I was wondering if I should stick to windmill in-built cache, or use redis instead. Im working with quite a lot of data and Im wondering how robust is windmill cache mechanism

Passing Pandas Dataframe Object between componenets.

I feel like I'm missing something but when I try to pass a Pandas Dataframe object from one script to another it becomes a different datatype. Do I need to setup S3 Storage in order to pass objects between scripts?

TypeScript(Deno) unable to find types

Imports in TypeScript(Deno) are causing errors: ``` // Cannot find module 'npm:windmill-client@1.415.1' or its corresponding type declarations.(2307) import * as wmill from "npm:windmill-client@1.415.1"...
No description

weird dependency issue

I have a simple script that connects via SFTP, unzips an archive and returns text content of that unzipped file. It works well during testing but when Im trying to deploy it, I get a dependency issue: error: Could not resolve: "@aws-sdk/client-s3". Maybe you need to "bun install"?. There's no s3 use whatsoever in this script
No description

Realtime timestamp

How do i insert a realtime timestamp on insertion in a mongodb collection?I´ve tried different methods but none worked
No description

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....

Dev/Prod envs using 2 instances (Community Edition)

Would I encounter any issues if I have 2 GitHub branches: - dev - master and use wmill sync push in a GitHub Action [with 2 different domains / tokens]?...

Is there a way to wait until a recompute function finish?

I am trying to change the state with the result of a background script from a frontend script, is that possible? Eg.: if (typeof (state.system) === 'undefined') {...

Stepper Component Question

I'm having trouble understanding how to do error checking when trying to advance the next step in the stepper but still allowing the user to go backwards. My script attached to the stepper component looks like this. ```def main(stepIndex: int,month:int, year:int,preview_df_exists:list): if stepIndex == 0: if not month or month == 0 or not year: raise Exception("Please Enter a Month and Year.")...

MongoDB deprecation

the resourse type mongodb_rest will no longer be useful for new projects because , the endpoints will be deprecated(https://www.mongodb.com/pt-br/docs/atlas/app-services/deprecation/#std-label-app-services-deprecation). How can I adapt the scripts already created in the mongodb_rest hub to mongodb?

Im getting a authorization error when testing the "Public Form". Also i cannot upload a S3 File

How can i fix it? I need to use the form as public form. Also, the filw upload progress get stuck. Is there a configuration to allow public file uploads to S3? Update: when im logged in, i can upload the files and the flow works fine. But i need it to be available to public access....
No description

Flow start error "InternalErr: Err: Internal: module was not convertible to acceptable value missing

Hi guys, I created some scripts standalone in python which work great, now i want to chain them via flows. It is pretty basic and simpel, I am now trying to run only the first script but i get this error. Where do I look?? Can't figure out where the error comes from....
No description

Delegate in metada

Hi , I'm trying to create a data handler in windmill dev web ui. I'm faced with the challenge of solving the delegate of a data insertion. In the metadata settings, how can I overcome this and set an option that indicates who made the insertion request?

Errors loading flows and apps on Windmill's Home page

Hello everyone! I am experiencing and weird issue that i hadn't before. When I create a flow or an app, it exist in db (app and flow tables), but it doesn't appears in the home page. It did not happen before, but since a few days i am experiencing this bug. Also it happened that when i access the home page, all scripts, flows and apps are not visible because the filter 'include without main function' is always true by default... not sure if this is the cause, but when i turn it off, it loads the...

Unable to use new Spotify OAuth provider

Hi there, Earlier this week, my PR to add a new OAuth provider for Spotify was merged. (https://github.com/windmill-labs/windmill/pull/4581) I've updated the docker images in my self-hosted instance to the release that includes this commit (1.412.0) so that I can try out the new provider....
No description

Typescript error main.main

Hello, good afternoon, does anyone know this error? It occurs in my Typescript steps