Windmill

W

Windmill

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

Join

help

general

changelog

How do I poll every x seconds on an app?

I have an app that I want to run a script every x seconds on, and have the ability to run a frontend script when it's successful each time, to add the data to the state. I see that there's a while loop in the flow, but it does not look like that would allow me to get the results on each success, just at the end.

How to insert JSONB parameter in Postgres Action

Hiya folks, Can't see what I'm missing here. I have a Postgres action as below: ``` -- $1 data ...
No description

rest request script does not work

I've just spun up a windmill instance on elest.io and want to make rest requests. But i cannot seem to get rest requests working at all, not even a call to https://google.at reurns anything. The Script starts loading and never finishes. I am using the unedited standard script when selecting the rest request script. I've attached a screenshot of my script while it is loading. Is that a configuration error in my instance or am i just missing some setting in windmill?...
No description

[python] subdependencies breaking wmill module installation

Hello, everyone It seems I broke a bit the wmill's python env (per action) via installing some sub dependencies. I documented the issue here: https://github.com/windmill-labs/windmill/issues/3596 since I don't have enough Rust expertise to address it tho. I'm open to collaborate further if someone can help me to set up the repo locally (be & fe) so I can debug, run tests and fix this if possible 😬 but I don't promise it will be fast tho....

In an app, in a table, if a button is clicked, a way to get thisRow(field) pass into inline script

It would be great if - In an app, in a table, if a button is clicked, a way to get thisRow(field) pass into inline script. For example if I click data in row 1, getting the id field of row 1 to pass into the inline script that is associated with the action button in that table's row. Currently I can reference the results in a Runnable's JSON results for example but I can't seem to find a dynamic way to interact with which row was clicked in the frontend.

How to access returned values in an external script.

I know this is probably very basic but I'm a newbie and I spent hours trying to get it to work yesterday. I have created a very simple workflow which I want to call from an external python script, and have that same python script process the response. All works fine... the python script shows a 201 response and print (response.text) shows the job_id. But I cannot work out how to access, in the calling python script, the json returned by the Windmill workflow. Can anyone help please?...
No description

global variables

Hie. Just wondering how I can make a global state that is accessible across different flows / scripts. I cannot use variables or resources for this particular case because I need the variable to be accessible and modified by multiple users in different sessionsconcurrently.

What's the cold start of python scripts in EE

Because in non EE it can be very slow. Asking because litellm is a fantastic python package and I think I will need to go enterprise for that...

Python Import Issue - Haystack library overriden

Hello, I'm trying to use haystack-ai in my project for its AI capabilities but whenever I import haystack, windmill installs haystack==0.42, however I need for it to install haystack-ai==2.0.1. Installation is fixed if I import haystack_ai, but such library only work by the name haystack, which will point to the first install mentioned above....

How to debug ExecutionErr(only Bun)?

Hi, I just spawn a new windmill instance using docker compose It runs flawlessly except bun script, I checked the log, seems I got a ExecutionErr How can i get more detail log or error to solve this problem? scripts: ```...
No description

Listen to slack events using windmill

damn apparently not possible for me to setup slack to add an auth header: https://stackoverflow.com/questions/41492508/add-auth-headers-in-slacks-outgoing-webhooks How do people create flows that listen to things on slack, using windmill...

Flow fail, reason: "WINDMILL_TOO_BIG"

Hey, guys! I have a flow that in one of its steps generates a giant json as a result. This is causing this failure that I show in the image, I don't know how to deal with it, would anyone know how to solve it? The app is self-hosted!...
No description

Scheduler

Hi, how can I set a task in cron to always run on the last day of the month? Every month has a different number of days...

Clearing file input

How can I clear a file input widget when I've finished uploading? Would want to clear the results array and the visual

beginner question: ECS terraform deployment; tasks are stuck in pending

Has anyone tried to deploy the terraform ecs templates and encountered the tasks being stuck in pending before? I am going to continue plugging away at it tomorrow but wanted to reach out to see if anyone had something similar. the terraform for reference, copy and pasted from the docs with some roles manually made https://github.com/RCSnyder/rcstech-windmill/tree/main/src/terraform ...

Moving files around

Hello, I would like to move my scripts around, without breaking things. Does using post / get by hash only, protect against this?...

New API | Oauth and extra params

Hello. I am testing windmill for syncing changes between a WooCommerce shop and an ERP. I can't find this ERP in the list of resource types, so to handle oauth, request/refresh token, etc.. do I just submit a PR with endpoins and scopes added to oauth_connect.json ? Also the ERP is using grant_type: client_credentials with an extra mandatory field tenant_id. Not sure how to go about setting this up, hoping for some guidance.

Null bytes in JSON

Hey, I want to pass a JSON object into a script that must contain null-bytes in strings. Like so:
{
"unicodePwd": "a\u0000"
}
{
"unicodePwd": "a\u0000"
}
...

Custom resource type implementation

I'm new with Windmill, so sorry if I'm missing some basics. I'm planning to integrate Windmill with getharvest.com. As there's no premade integration, I started to look into how to create custom integration. I found the page telling how to create a custom resource type but didn't find any details about how to implement the integration. Any guidance about that? There is also token-based authentication (I can use that temporarily), but Harvest also supports OAuth, so it would be great to use it in the long term. https://help.getharvest.com/api-v2/authentication-api/authentication/authentication/ Thanks for the help....