sledge
Worker caching weirdness
We are using a web KV store. For a specific key we have written three blobs of JSON - each write with a different number of array elements in this order (5, 8, and 16). We have a simple windmill typescript script that fetches the data and logs the number of array elements. When we run that script on the windmill deploy (self-hosted EE) the workers get a variety of responses from the fetch (sometimes 5, someimtes 8, sometimes 16). Its like windmill has cached the internal fetch results and is returning that instead of doing the actual fetch. Which seems weird to me - since its just running our script on a worker. However, if I run the exact same fetch on a cloud-hosted windmill, the script always gets 16 elements (which is all that instance has ever seen). Is WM doing something like this or have we just hit some weird distributed caching problem with the KV store we're using?
The fetch is simple:
let result = await fetch(url)
let data = await result.json()
console.log(data.length)
10 replies
Generating tokens for apps?
I have three different "apps" that will be using the APIs I'm building in our WM instance, two web apps and one server app. I want each of them to use their own API token and for the WM Runs view to show which app triggered the run. But right now tokens are tied to users. If I want to do what I describe - is my only option to create a per-app "user" in WM and create the token in that user account?
2 replies
Staying in sync
I've read through the docs on git sync and wmill cli sync. I have wmill syncing working. When I make changes via the wmill UI, if I want them in my local copy of the workspace I run wmill sync pull. If I make changes to the local workspace, I run wmill sync push, approve the diff and the changes go back to the wmill workspace storage. If I look at the history of a changed file, I see the history of changes. Now I want this workspace to also be synced to a git repo and I have some questions:
If I add git sync to the workspace, do I also need to clone the repo to work locally or do I just use wmill cli for local work and push changes back to the workspace?
For git sync, what if changes happen to the repo outside of wmill, how do I get wmill to pull the latest code from the repo?
Is the git sync more tied to deploys instead of draft saves? In other words, saving drafts keeps history of those changes between saves, deploying pushes to the git repo, tracking history between deploys?
Thanks for the help,
-Chris
18 replies
Bun installer appears to fail during script launch.
I just finished setting up a self-host install of WM. I can run a deno typescript test without problems, but if I run a bun test, the mem just keeps building then eventually I see this:
ExecutionErr: error during execution of the script:
process terminated by signal: Some(
9,
), stopped_signal: None, core_dumped: false
Any tips on what to do to investigate?
Thanks,
-Chris
35 replies
Migrating content to another Windmill instance
I have a corp client that is taking forever to make a decision on how they're going to license Windmill. In the meantime, I've been building their integrations using a free cloud instance. I'm curious, is there a documented process for migrating all content from one Windmill instance to another if that becomes a necessity?
8 replies