Windmill

W

Windmill

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

Join

help

general

changelog

Postgres TLS Connection is invalid

I've followed other questions about deno pgCLient raising an error
Error: The certificate used to secure the TLS connection is invalid.
at Connection.#startup
Error: The certificate used to secure the TLS connection is invalid.
at Connection.#startup
...

Problem with understanding Windmill pricing

i have a workspace in which we have 2 developer and we paid 20 dollor ( 10 dollor for each ) we are suppose to get 20, 000 executions but in dashboard we are getting only 10, 000.
No description

How to retrieve a variable from an HTML component based on onclick = "function(this)" functionality?

I've written custom HTML to create a list using the HTML component in the Windmill app. I want to retrieve the <li> tag value that was clicked on the component. Is there a way to do this?

Caddy issue

So I have run the self-hosting script on my Linux (Fedora 39) machine, but I cannot access the web-interface that Caddy should be providing. Everything seems to run fine, I haven't tweaked any of the baseline files, but I can get it to work. It seems that the Caddy process gets stuck in a loop where it just won't start correctly. docker ps shows a constant restarting message. Any ideas on what might be going wrong, or what I can do to get it to work properly?...
No description

Can't get a simple button working

Feeling pretty dumb here... I'm trying out the App Editor, and I've made a button which receives some data and calls a Python script which prints the data... and that's all! And when I click this button it calls the Python script, but then it never comes out of the "Loading" state. I've tried returning True from the Python script, I've tried attaching a Transformer to do myButton.loading=false .... I just can't figure it out. There must be something very basic I'm doing wrong 😳

Where exactly i can add value of text-input to click-handler of button in App

I am making a simple app to start with - Add two numbers Question is in the title. PFA image...
No description

Migrating from Airplane Prompts

I'm looking to migrate some Airplane scripts we have to Windmill, and I wanted to ask what's the best way to migrate Airplane prompts https://docs.airplane.dev/tasks/prompts. I looked at the documentation and it seems like a form in an approval page could be the way https://www.windmill.dev/docs/flows/flow_approval#add-a-form-to-the-approval-page, but if someone has done something similar, I'd be interested to know.

How to plot graphs using Python's matplotlib, seaborn, etc. on Windmill app?

Hi, I have some graphs I want to plot on a Windmill App using Python's matplotlib/seaborn. What would be the best way to do so?

Can the approval process be done with another workflow?

I have a form consisting of 2 steps, and I also have a script that checks whether the first form is filled. I will access both forms in the workflow; if the first form is filled, I want to print the second form. However, doing this manually won't be practical for the later stages of the process. That's why I want to write the script that checks the form's status as an approval and automate this approval process in another workflow.

Get root workflow id

I have a data pipeline that normally runs in incremental mode, but sometimes we want to do a full reload. The full reload will be a workflow the reuses the normal incremental workflows with some extra config. One critical config is the target database. During the full reload we'll target a temporary database, and at the end of the flow we'll exchange tables between the old and new. This gives us a very safe mechanism for doing reloads non-destructively. One way to achieve this would be to parameterize all the incremental loading scripts (and workflows). But this would complicate the code for something that happens rarely. So, to achieve this I though instead I could set some ontextual config that should apply to all the jobs that run as a result of the top-level reload workflow to override the database they connect to. My idea was that I could set a Windmill resource which contains the necessary config as well as the workflow id of the main reload workflow. ...

Questions about worker memory usage

I am currently running windmill-ce with Helm. I'm using three wokergroups. default, native, and a separate group for scheduling. Over time, other workgroups stay under 200M in memory usage, but the scheduled worker continues to grow in usage. ...

Cant run caddy

run: reading config file: open /etc/caddy/Caddyfile: operation not permitted

Keep optional strings from getting converted to empty strings

I have a script which has a whole bunch of fields marked as string | undefined. For some reason though, fields with no value are coming though as empty strings instead of undefined. Is there any way to avoid this?

How can I use a context variable in a branch predicate?

I'm trying to use a context variable in a branch predicate, but I can't figure out the right syntax. The documentation on flow inputs has some examples (see picture), but none of them work. What I'm trying to achieve is to run one part of the workflow only if an environment variable has a specific value. Is there some documentation on what expressions are possible in the branch predicates (and flow inputs, I guess they use the same javascript evaluation?)...

Python script parameter types confusion

Given a script parameter like this: "input_files: List[S3Object]" where S3Object comes from the "wmill" package, the parameter is set as an "object" in the windmill ui, but is an array of a type. Trying to follow "https://www.windmill.dev/docs/script_editor/customize_ui", the UI on the script editor on app.windmill.dev is completely different with the "Customize" button not existing, but rather "Diff, Settings, Save Draft, Deploy" are the visible options. Under settings, there is a "Generated UI" tab and a customize option below, but it's also completely different than what is shown in the docs. How do I make wmill python script parameters respect the type set in the UI?...

What base url to use for API calls?

I'm trying to call the Windmill API from inside a script. I'm running locally on Docker for Mac. If I try to set the base url to localhost or 127.0.0.1 I just get connection refused. The only thing that seems to work is host.docker.internal, but when I use this the links that are rendered using BASE_INTERNAL_URL seem to broken?

How to copy all windmill artifacts from windmill base image?

Where would windmill artifacts be located if I want to manually copy them to my own docker image? For example I am basing my image off of windmill ``` FROM ghcr.io/windmill-labs/windmill:latest...

Internal: Result of job is invalid json (empty)

Hey, I'm getting the following error while trying to execute a simple Bun script (sending a Slack message): ```...

Resource SMTP cannot renew access token

It seems that my SMTP resource cannot renew access token. Whenever I tried to use the resource or renew access token. I got this error: Bad request: invalid client I tried to use dropdown, or the button, but still produces the same error. Any help would be appreaciated. Thank you...

edit error

I was designing a form template consisting of multiple components, and suddenly I received a message in a pop-up window: 'App restored from browser storage Discard URL stored autosave and reload Show diff .' Now, I cannot make any changes to the application. How can I fix this?...