Windmill

W

Windmill

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

Join

help

general

changelog

Script to hub: How to pass in Ressources?

Hey, I was thinking about publishing a python script to Hub. My scripts need a config in the form of a ressource (for authentication etc.). I've seen how python scripts do this on the hub - they pass in a dict and the metadata states that this dict is of format "resource-<resource_type>" (also documented here: https://www.windmill.dev/docs/core_concepts/json_schema_and_parsing#script-parameters-to-json-schema). I can't get it to work. In my Script, I go to "Settings" -> Autogenerated UI -> "Customize" my parameter, and choose a ressource type....

Importing a workspace

There's a page where I can export a workspace, which gives me a zip file. How can I then import that?

Database migration error

Hi all, my self-hosted Windmill stopped working and shows this error before failing. ``` INFO Binary is in 'server' mode | timestamp=2024-04-12T14:04:18.792315Z target=windmill ...

generate-metadata command failing

Lock files were there but i wanted them to re-generated because of newly added requirements.txt ``` error: Uncaught (in promise) Error: Failed to generate lockfile. Status was: Internal Server Error, timeout after 20s, SyntaxError: Unexpected token 'i', "timeout after 20s" is not valid JSON throw new Error(...

Getting Undefined on Multiple Upload on S3

I'm seeing a problem where if I try to upload multiple files at once with the s3 browser, only one of them works, but if I upload 3, the other two never finish and show a error popup saying "undefined"

Creating button eventListeners

Hie guys. I have an app with three button components and a text box. Each of these buttons is returning a result. I am trying to output the result of the respective button pressed in the textbox. I have seen the documentation suggesting using an onclickeventlistener for each button. Can you please help me with instructions on implementing this feature, or a possible alternative approach as recommended. Maybe a small sample code example would help as well. I can proceed based off that....

How can I set the state of an app inside a fetch script?

I'm trying to use a fetch script, and then with the result store it in the state. How can I store it and then use it later?

Is there a way to run windmill under a subpath?

I'm trying to run windmill behind traefik at a subpath like /apps This dosen't work however, because the client tries to load the javascript at /_app/* instead of /admin/_app/*...

Init script playwright

Windmill EE v1.304.3 I want to install playwright via the interface but playwright doesn't seem to install. I tried the example here: https://www.windmill.dev/docs/advanced/preinstall_binaries#example-installing-playwright-via-pip-1 but that doesn't work either. Init Script:...

Some parts of flow fails when parent_job is set

I'm currently dealing with an issue where a flow run will fail if the parent_job is set. If I don't pass a parent_job then the flow runs just fine. Why might this be happening? Is this expected? Here's a snippet of the step and the result. It seems like the items, which are set to the result of a previous step, are null (which they shouldn't be as the step returned results, see image below)....
No description

Trying to install binaries using the INIT_SCRIPT is not working (apt-get or apk add?)

I am trying to use an init script that install poppler. I add the following to the windmill_worker under the environment section: INIT_SCRIPT="apk update && apk add --no-cache poppler-utils" I get this error: {"message":"ExitCode: 127, last log lines:\n./main.sh: line 2: apk update && apk add --no-cache libmagic poppler-utils glib libgl: command not found","name":"ExecutionErr"}...

Deadlock and "was unable to make the last transition"

I'm running EE v1.303.4. There's this flow that only uses the REST scripts, one of them is a call to OpenAI's chat completion cached by Clouflare. I noticed that when testing this flow with the results already cached by Cloudflare, they return almost instantly, and the the flow executes very fast with the errors in the screen shot. I did not even set the error handler and the it shows up with the error message InternalErr: Sql error: error returned from database: deadlock detected. In the console I only see the same error as in the UI: Flow 018eb3b7-2601-ffbd-c7c0-72933c171ae7 cancelled as one of the parallel branch 018eb3b7-2655-648a-161f-c4cb1314d5e9 was unable to make the last transition Since it's on my dev machine, I don't think it's related to lack of compute resources. This happens even with lower values of parallelism in the forloop such as 5....
No description

can not run python code

Hi, first thanks for the hard work, I like the concept of the windmill I just spin up the windmill on my mac use docker compose, try run some python code, seems error from windmill generated code? how can i fix this error...
No description

Syncing a whole existing folder with scripts and shared logic

I want to take a folder (from a non-Windmill project) with index.ts, package.json and a bunch of *.ts files, and sync it to Windmill into a folder, so I could automate it on the Windmill Cloud side. I'm getting errors akin to: 1.) ... *.ts invalid, it cannot be parsed to infer schema. 2.) ... *.script.yaml: Error: Failed to generate lockfile. Status was: Internal Server Error, timeout after 20s, SyntaxError: Unexpected token 'i', "timeout after 20s" is not valid JSON...

Recommended pattern for managing resource permissions

Is there a recommended pattern for, say, having a database resource, which is used by scripts. The scripts themselves are in a folder which gives View access to operators. Is there a way to give the operators access to run the scripts against the database resource, without giving them the ability to view the database resource secrets?...

Enable S3 Log Streaming

Hi... how do I enable S3 log streaming for worker logs? I have an S3 resource set up but logs are still only written to the worker local storage. I'm on EE 1.300

Default login not working on first login

I set up a new Windmill instance using the docker-compose setup and upon first login using the default login credentials /user/login?email=admin@windmill.dev&password=changeme it throws Invalid credentials I have tried recreating the database ``` drop database windmill; create database windmill;...

Slack Bot Development in Windmill

Hi, wanted to ask how feasible it would be to develop Slack App behavior solely with Windmill. Most behavior could be set up nicely and leverages Flows, but it looks like deployment of apps to Slack (https://api.slack.com/automation/deploy) would be hard to achieve.

Nginx Proxy Manager

Hi, is there any way to set up a Docker container using Nginx Proxy Manager to serve as a reverse proxy? Has anyone tried setting up a container in this manner? I suppose I should remove Caddy from the Docker Compose file?

Setting content-type in S3 File Uploader

Hey! Is it possible to set a content-type for the uploaded file in the S3 File Uploader? If that property isn't set, everythig defaults to application/octet-stream, which I need to override. If it's not possible, I'll need to put together a Script to use the S3 API to set the content-type after the file is already uploaded, but that's far from ideal. Any help would be much appreciated!...