Windmill

W

Windmill

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

Join

help

general

changelog

Execute a script for each flow run

Is there a way to run a specific script for each flow run? We would like to do things like custom logging, without having to update each & every individual flow. For example, is it possible for the worker to have a "post flow run" hook for example that can be called?...

Worker caching weirdness

We are using a web KV store. For a specific key we have written three blobs of JSON - each write with a different number of array elements in this order (5, 8, and 16). We have a simple windmill typescript script that fetches the data and logs the number of array elements. When we run that script on the windmill deploy (self-hosted EE) the workers get a variety of responses from the fetch (sometimes 5, someimtes 8, sometimes 16). Its like windmill has cached the internal fetch results and is returning that instead of doing the actual fetch. Which seems weird to me - since its just running our script on a worker. However, if I run the exact same fetch on a cloud-hosted windmill, the script always gets 16 elements (which is all that instance has ever seen). Is WM doing something like this or have we just hit some weird distributed caching problem with the KV store we're using? The fetch is simple: let result = await fetch(url)...

How to differentiate between preview and production runs?

As the title says: how do I know inside of my script if it is running in preview or production mode? I noticed that I might be able to use env variables for this (in the settings - runtime menu), and this works if you are just running the script standalone. But, when I wish to run a flow in preview mode, the scripts inside of the flow do not seem to realize they are running in preview mode, and the production environment variables are still used....

puppeteer is failed to start

I had a working browser automation script and from last week it's not working so I created a new script using this guide https://www.windmill.dev/docs/advanced/browser_automation (bun puppteer version) and still it's not working Auto scroll took 30929ms mem peak: 79.43MB ...

Custom url for public app

Hey, we are creating some public apps using windmill and would like to assign a custom url to these pages. For example, I want a user to be able to browse to windmill.company.com/my_app and be shown my page, without them seeing a redirect to /public/foo/bar in their browser. This would make it way easier for them to bookmark stuff. Is this possible through the caddy files? We couldn't get it to work....

Integrating an app in a custom React application

Is there a certain design concept we can follow (and is it technically supported) to integrate a Windmill app in a different (react) application, and pass along things like authorization cookies / information to render data in apps specific to the context of a user outside of Windmill? We are now using a combination of public & private apps, but want to explore the option for more fine-grained access control based on authentication information outside of the Windmill App context. Thanks!

Can't get custom React component to show up on screen

I've followed the guidelines here: https://www.windmill.dev/docs/apps/react_components But the component which I'm supposed to start editing doesn't seem to load correctly on the browser. However, when I build it and upload it to windmill, it works flawlessly. Any help here is welcome! Thanks! Attached is the error I get as of right now....
No description

Support for HTTP Browser Redirects in Windmill Functions (302 Response Handling)

Hey guys, I'm trying to implement URL redirects through a Windmill TypeScript function. Specifically, I want to create an endpoint that, when accessed through a browser, redirects the user to another URL (in my test case, to Google.com)....

Python requirement issues

Hey, I am trying to write a script that makes use of the azure opentelemetry sdk. When I run the script below locally, it just works. But when running in windmill. I get this error: ModuleNotFoundError: No module named 'azure.monitor.opentelemetry'...

Quota exceeded: Email trigger usage limit of 100 per day has been reached

We are receiving "Quota exceeded: Email trigger usage limit of 100 per day has been reached" for one of our flows. However, we're only having 10-20 inbound emails per day, throughout the instance. Is there any overview over all runs that have been triggered via email trigger so we can investigate this further?
No description

Access name of uploaded file (base64)

Is there a way to get the name of the uploaded file?
No description

port used for resume URLs

Hi, I've written a approval script for my flows, when generating resume urls with wmill.get_resume_urls(), it keeps generating urls for port 8080 even though my windmill server is sitting on the default port 80. Therefore, whenever I try to use the generated resume urls, it fails and I am forced to manually switch the url to use port 80. For dev, I've just got the windmill server up and running using docker compose up. Is there any other config I need to do to get resume URLs working?...

Branch All Parallel throwing Error

In this configuration, which is simple echo bash scripts at present throws error mentioned in the image. I tried to check in GitHub issues and documentation about "Branch", but found no instructions about what could be the reason for this error. Edit #1: Error shows up after "Shared Directory" is enabled. Edit #2: Solved. ...
No description

Windmill on Windows without a Docker

Hello, I noticed that Windmill supports native Windows functionality without Docker only in the Enterprise Edition. Are there any plans to release free-to-use binaries for Windows in the Community Edition? I’m interested in exploring Windmill for local hobby projects at home but would prefer not to use Docker or virtual machines. Hypervisors tend to consume significant resources, even with minimal configurations like a single VM with 1 vCPU and 2GB RAM in an idle state. This makes Docker and VMs inefficient options on Windows for lightweight use cases....

Is there a way to pass a context variable into database studio?

I want to pass ctx.email into the Where Clause
No description

Edit init script

Is there anyway to edit the init script?
No description

API for create new Resources and ResourceType

Is there any API to create Resources and Type?

import workplace script in inline skript

I have a script in my workspace: u/chrsch/useful def foo(): print('Common logic!')...

Locked out of Windmill

Hi! We've been testing out Windmill for some time now. Today we were checking out how workspaces work and how we can give rights to users. Somehow we managed to lock ourselves out and we were logged out of our only superadmin account. Logging in again does not work as it's saying our credentials are invalid even though we know for sure they are correct. This happened when we removed users from a specific workspace, including the superadmin, and with that we lost complete access. Is there any way to restore this so we can access our scripts and flows again?...

What Postgres versions are supported?

Hi there, I am just wondering if older Postgres versions are support (specifically v11). Thanks