Sindre
Sindre
WWindmill
Created by Sindre on 3/19/2024 in #help
postgres sql bind varaiables
No description
11 replies
WWindmill
Created by Sindre on 12/4/2023 in #help
Search by component
I thought the search on the table component search all columns, but did not do any kind of lowercase or fuzzy search, just match on each prefix of the word in the columns. But now I have a job with "a lot" of rows (500) and cols (30). And the search do not hit what I expect it to hit.
I search "Breakfast" that is in the a column called "Title" but I get no hit on exast match.
5 replies
WWindmill
Created by Sindre on 11/9/2023 in #help
Worker group tag
No description
5 replies
WWindmill
Created by Sindre on 11/9/2023 in #help
wmill cli sync error
When doing this command: $ wmill sync pull --raw --yes --token "<valid-and-verified-working-token>" I get the follow error message:
Debug logging enabled. CLI build against v1.201.0
Computing the files to update locally to match remote (taking .wmillignore into account)
Downloaded zip/tarball successfully
Computing the files to update locally to match remote (taking .wmillignore into account)
error: Uncaught (in promise) Error: Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html
Debug logging enabled. CLI build against v1.201.0
Computing the files to update locally to match remote (taking .wmillignore into account)
Downloaded zip/tarball successfully
Computing the files to update locally to match remote (taking .wmillignore into account)
error: Uncaught (in promise) Error: Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html
Has anyone else encountered this? It works on my normal machine. But when I'm doing this on a EC2 i get this error message. I have tried checking that file/folder permissions on my working directoy and that seems to work fine. and it does create a .wmill folder. meaning it is able to write as it should. at least to this dir. I do not understand why this is only happening on my ec2 and not locally...
4 replies
WWindmill
Created by Sindre on 10/11/2023 in #help
Running "side effects" in flow / return early to (windmill) App
I'm having a use case that I think is not normal maybe, but not unheard of at least. But I'm not sure how to model it in windmill. I have a (windmill) app that runs a flow, the flow inserts into a database, and then it notifies about this a couple of places (slack, email). What I would like to achieve is to return a result o the user after I have inserted into the database, and then let the flow do slack and email afterwards. so the user do not need to wait on this result. The only way I see doing this now, would be to call another flow from the HTTP endpoint... but that feels a bit hacky since I now can't see the relation between the flows. is it a better way of modelling this I do not see?
7 replies
WWindmill
Created by Sindre on 10/10/2023 in #help
Remove darkmode from App?
Is there a way to remove darkmode from app? I created a app and customized it a bit to get a better look and feel, but I forgot that windmill has darkmode... And now the look and feel is awefull for toose users. I do not want to support 2 designs. Is there a way to remove the darkmode from the app styles? Is the dark mode inherited from os/browser settings? or do the users need to set the dark mode info in windmill explict? (was not able to find dark mode in the docs)
5 replies
WWindmill
Created by Sindre on 9/14/2023 in #help
Gracefully exiting workers
I'm currently in the process of running some scheduling jobs, that I want to run quite often. Let's say every 5 sek or so. But I could also only do it once every 15 min. I'm sending a mail to new users of windmill, and nowadays people is expecting mails fast. I still run my system on docker compose. And I'm currently updating the containers quite often. docker sends SIGTERM and then SIGKILL after a grace period [1]. how does windmill workers behave when executing a job and getting a SIGTERM?
I'm never in a rush, so I do not want to kill them. my thinking is that I should configure the grace period to be the same as the TIMEOUT env var. But then I expect the workers that recive a SIGTERM to exit and not take on another job. Is this a correct understanding of how workers in windmill should work? [1] https://docs.docker.com/engine/reference/commandline/stop/
39 replies
WWindmill
Created by Sindre on 8/31/2023 in #help
find the current App user from a script/flow
If I'm running a flow that is executed from an app. WM_EMAIL is the email from the user that has deployed the app. Is it possible to get the current user? I know i can get the current user by sending the ctx.email but how do I ensure that a user do not modify this, or just call the api directly with another value? Is this handled with regards to security ?
7 replies
WWindmill
Created by Sindre on 6/11/2023 in #help
windmill-documentation-bot
I see you have gotton a windmill-documentation-bot, seems like a very nice idea. Can you share something about how it is setup, would like something similar myself 🙂
5 replies