Windmill

W

Windmill

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

Join

help

general

changelog

Body of a preprocessor

hi guys, i'm using a preprocessor in my flow that should get the body of the request and pass it to the preprocessor result so that i can use in the input of my flow. But the way i'm using, does'nt seem to work because the preprocessor doesn't get the body of the request.Why? Only query, params and others but not the body are in the top level Thank for your help...
No description

Email trigger

May I know if there is an email trigger demo on https://app.windmill.dev/? I set it up, but it doesn't look like what I expected. I created a preprocessor to take the incoming the email body , def preprocessor(raw_email: str, parsed_email: dict, wm_trigger: WmTrigger):
text_body = parsed_email.get("text_body") ,
return {...

Tab Completion Bug

Big fan of the new AI additions to the editor @Hugo C. 🎉 One small error I'm encountering: I can no longer hit "Tab" to autocomplete, I have to instead hit "Enter" to complete on Safari. Note: this is just when using the standard autocomplete pop-up won't "Tab" autocomplete anymore on Safari....

Prepared Statement Error - Postgres

Attaching a quick video that shows how statements start to error out after: Test ⇢ Deploy ⇢ Test.

Preprocessor on flows

Hi guys, in a flow, on can i pass, using an JS expression, the result of a preprocessor that i have on my flow? i tried results.preprocessor or preprocessor.id for like only getting the id of the result and it says it's not defined on the response of the request. Thank you...

New image causing errors

We run a self-hosted version of Windmill on AWS ECS. The task config was set to use the latest Windmill image. We had not restarted the tasks in months. Yesterday I restarted them & they seem to have picked up a new Windmill image. Now the logs have some new errors in them. Here is an example: Sql error: error occurred while decoding column "job_kind": invalid value "flownode" for enum JobKind error=SqlErr(ColumnDecode { index: ""job_kind"", source: "invalid value "flownode" for enum JobKind" }) target=windmill_common::error span={"email":"admin@windmill.dev","method":"GET","trace_id":"c9b78efa-344b-4ccc-b8bd-8c2b53544252","uri":"/api/w/design-generation/jobs_u/get/0195d35e-dbfa-ae09-801f-ad7dc63afda2?no_logs=true","username":"admin","workspace_id":"design-generation","name":"request"} Is there a correct way to upgrade (or even to rollback) that we should follow to extricate ourselves from this situation?...

Scheduled script stops scheduling after wait for executor

Hi! We are experiencing some issues on one of our Windmill instances. It runs a few scheduled jobs and for a still unknown reason sometimes the scheduled jobs wait a very long time for an executor. Also sometimes it seems the run time is displayed as a negative number (which i'm guessing may be some sort of overflow due to crazy long wait times). The jobs do seem to eventually run just fine, even if the run time is broken like that....
No description

modal on button press

Hi, when I click on a button and a flow is running, I currently use the option "on success" to open a modal with the flow execution. Is possible to open the modal already when I click the button before the flow is finished? Also is it possible to control components via scripts like if they are loading? I couldn't find anything in the documentation and setValue() did not work on loading....

Hot swap flow query for similar with additional arguement

I have a simple flow that calls a Postgres query, (with args) and then for branches from there. I now want to replace the query with one that is very similar but has one additional argument. I edited the query in YAML to replace the path for the sql script (which seems to save), but when I try to add the additional input transforms for the third argument, it keeps disappearing when i apply changes and go back and look at flow. ...
No description

Synchronize Hub Ressource types with instance throws "Error: Could not reauth"

Hi there! We are just getting started evaluating Windmill self-hosted for a possible EE-deployment. We are currently running version Windmill CE v1.478.1-5-g46797f072 behind an explicit proxy. Proxy settings are passed to the docker containers via env variables HTTP_PROXY=http://redacted.local:3128, HTTPS_PROXY=http://redacted.local:3128, NO_PROXY=localhost,windmill.local,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16. I can see in the proxy logs, that Windmill uses the explicit proxy for outbound connections....

No arguments passed to main when relative imports in VSCode Preview

Hi, when I bundle relative path for local preview in VSCode (the only way I found to have relative imports working), when I test my script, arguments are not passed to it. To reproduce, here is a simple script: ```typescript import { Language } from "./lib/database/types";...

Is it possible to mix python and typescript within in the same flow and have them simultaneously run

I want to implement this solution mentioned by Perplexity.ai: https://www.perplexity.ai/search/is-it-possible-to-start-a-chro-D7iYBu8mSnG..yVEcGxb3g#0 To alleviate an issue I am having in automating a form submission for my users because of a hidden Cloudflare Turnstile Captcha. I read elsewhere that the undetected_chromedriver in Python can do that. My issue is that the script I am trying to execute uses Puppeteer and i would very much like not having to re-write it. It looks technically possible, but I was wondering if its possible on Windmill itself? Thoughts?...

datetime script param throwing a syntax error in python

I'm trying to use a datetime script param but the linter flags it as an error and when run I get "NameError: name 'datetime' is not defined. Am I missing something here?
def main(startDate: datetime, endDate: datetime, page: list):
#rest of script
def main(startDate: datetime, endDate: datetime, page: list):
#rest of script
...

Python Dependency hell in windmill

Hello, I have encountered an issue with the whole dependency setup in windmill. I have a python script in windmil. I use phidata package. This package is accessed in python with 'from phi import ...'. ...

EE Trial License and bunfig scoped pkg's config not working on the second instance as desired

Is there a limit on my EE trial license: I see that the portal says 1 seat. So far, I have only had 1 docker-compose non-prod on my laptop, and one in Fly not marked non-prod, but it seems I can't pull private packages on the Fly instance even though I am running with the EE images and the license key is set. There were some difficulties in initial setup with migrations taking longer to get the lock, they eventually finished and I am not seeing any other difficulties other than not being able to pull the scoped npm packages listed in my bunfig in the instance settings. The same setup has worked well on my laptop with the docker-compose. So any help would be appreciated. Bottom line is when its not working, it likes to resolve the scoped packages in the bunfig from npmjs.org and 404s obviously. Bunfig is actually pointing to GitHub. The documentation confuses me where it says to set up the npm private registry. Is it necessary to do that and set up bunfig - on my local instance, the problems finally went away when I just had the bunfig set. However, the same working config is not working on the non-prod instance. Tried doing a docker compose down to see if its a limit on the license seats causing the issue....

"deployment in progress" hanging forever

Hello there, I am using the enterprise version on my own deployment, with 4 workers. On GCP. I am trying to save some scripts / flows, and my deployments are not going through ("deployment in progress" hanging forever). What's the best way to debug that ? Cheers...

dagger function

I would like to know how to connect to dagger cloud!

intellisense

Hi Guys! I'm trying to create a simple Python script: from agno.agent import Agent def main():...

Using outputs from scripts as inputs

Hello, can someone please explain to me how can I use the outputs from one script as an input to another? I know there is documentation written about it, but to me it's not clear what exactly I need to click on in the UI to make it work. I'm attaching a screenshot of my flow which has two steps: the first script that does some processing on the data, and the second script that uploads this data into BigQuery. ...
No description

How to fetch the path or jobid of a flow that called another flow

Within FlowA I am calling FlowB with static inputs, one of the inputs being the 'path' from FlowA. Is there a way to automatically fetch the FlowA path (or jobid) within FlowB without using a static input ?
Next