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?...
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:
```...
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!...
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....
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....