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....
How can I set the state of an app inside a fetch script?
I'm trying to use a fetch script, and then with the result store it in the state. How can I store it and then use it later?
Is there a way to run windmill under a subpath?
I'm trying to run windmill behind traefik at a subpath like /apps
This dosen't work however, because the client tries to load the javascript at /_app/* instead of /admin/_app/*...
Init script playwright
Windmill EE v1.304.3
I want to install playwright via the interface but playwright doesn't seem to install. I tried the example here: https://www.windmill.dev/docs/advanced/preinstall_binaries#example-installing-playwright-via-pip-1 but that doesn't work either.
Init Script:...
Some parts of flow fails when parent_job is set
I'm currently dealing with an issue where a flow run will fail if the parent_job is set. If I don't pass a parent_job then the flow runs just fine.
Why might this be happening? Is this expected?
Here's a snippet of the step and the result. It seems like the items, which are set to the result of a previous step, are null (which they shouldn't be as the step returned results, see image below)....

Trying to install binaries using the INIT_SCRIPT is not working (apt-get or apk add?)
I am trying to use an init script that install poppler. I add the following to the windmill_worker under the environment section: INIT_SCRIPT="apk update && apk add --no-cache poppler-utils"
I get this error:
{"message":"ExitCode: 127, last log lines:\n./main.sh: line 2: apk update && apk add --no-cache libmagic poppler-utils glib libgl: command not found","name":"ExecutionErr"}...
Deadlock and "was unable to make the last transition"
I'm running
EE v1.303.4
.
There's this flow that only uses the REST
scripts, one of them is a call to OpenAI's chat completion cached by Clouflare. I noticed that when testing this flow with the results already cached by Cloudflare, they return almost instantly, and the the flow executes very fast with the errors in the screen shot. I did not even set the error handler and the it shows up with the error message InternalErr: Sql error: error returned from database: deadlock detected
. In the console I only see the same error as in the UI: Flow 018eb3b7-2601-ffbd-c7c0-72933c171ae7 cancelled as one of the parallel branch 018eb3b7-2655-648a-161f-c4cb1314d5e9 was unable to make the last transition
Since it's on my dev machine, I don't think it's related to lack of compute resources. This happens even with lower values of parallelism in the forloop such as 5
....
can not run python code
Hi, first thanks for the hard work, I like the concept of the windmill
I just spin up the windmill on my mac use docker compose, try run some python code, seems error from windmill generated code?
how can i fix this error...
