Windmill

W

Windmill

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

Join

help

general

changelog

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

Validation

Hello, I've been struggling with the validation process within the form. When I try to use the submit form component, the script is limited. For example, I can provide simple options for select components. What I really want to do is to display a list of data that can be selected from the database (e.g., names of countries). When I place the components separately without using the submit form, I solve this step with a background runnable. However, in this case, I cannot set up validations. Do yo...

How to write windmill variables from scripts

I have to do a task from the point which i store in a variable then save new point in that variable and this task going on in a Schedules i write a script to do that task i import variable (await wmill.getVariable('u/aXXX/id)) but i can't write it back as the script run ...

How to handle a paginated graphQL request?

Hello, I have been really enjoying using windmill and I figure I am missing something but how should I handle paginated graphQL requests? I have a a graphQL request which takes a "first" prop to make paginated requests and I have used a while loop in the past to keep fetching pages until I retrieved all necessary records. However, I am unsure how to do it the Windmill way. To be clear, this is being used for a data pipeline so all the data needs to be fetched and processed so I need to paginat...

Getting ExecutionErr for lightweight flows run by schedule

ExecutionErr: error during execution of the script: process terminated by signal: Some( 9, ), stopped_signal: None, core_dumped: false ...

Accessing dropdown data in select component

I connected the data of country names from Supabase to a select component on the Windmill app. I can select any country on the select component, but I cannot access this data. It shows 'undefined' in the result section. What should I do?

Frontend library addition and validation

Hi, I would like to add the "ajv" library as a frontend script for validation processes in Windmill. Is it possible? Additionally, I aim to apply validation to my frontend inputs one by one without using a submit form.