Kaspar
Kaspar
WWindmill
Created by Kaspar on 10/21/2024 in #help
In a flow, is it possible to invoke for-loop parallelism on a single worker, to save on cost
Hey! So I have a flow which uses an SDK which is not very optimized and does a slow API call. This ends up racking up a lot of worker execution seconds, and Windmill cloud bill along with it. I don't want to ditch the usage of the SDK. One solution would be to re-factor the slow to try to do all the necessary slow calls in a single step, i.e. I would handle the for-loop in the .js level, not the flow level. I would prefer to keep the flow structure and optimize on the level of Windmill worker usage. Any way to do this?
27 replies
WWindmill
Created by Kaspar on 5/23/2024 in #help
Suddenly getting "Error: Variable not found ... or not visible to you" for my schedules
I haven't changed anything and it has worked for a long time. Did something change? Full message: Error: Variable not found at u/*USER*/*MY_KEY* or not visible to you: Unauthorized
7 replies
WWindmill
Created by Kaspar on 4/5/2024 in #help
Syncing a whole existing folder with scripts and shared logic
I want to take a folder (from a non-Windmill project) with index.ts, package.json and a bunch of *.ts files, and sync it to Windmill into a folder, so I could automate it on the Windmill Cloud side. I'm getting errors akin to: 1.) ... *.ts invalid, it cannot be parsed to infer schema. 2.) ... *.script.yaml: Error: Failed to generate lockfile. Status was: Internal Server Error, timeout after 20s, SyntaxError: Unexpected token 'i', "timeout after 20s" is not valid JSON Even though the script files are quite innocuous. Is this a reasonable thing to do? Any pointers to where I could be going wrong?
4 replies