tl_jacob
tl_jacob3w ago

Ignoring .venv during script metadata generation

@rubenf I am using uv for local script development, which creates a .venv directory within the script directory. I noticed that script generate-metadata was taking a long time > 40sec for a single script and was able to determine that the bottleneck is findGlobalDeps iterating over all the files in the .venv directory when trying to find a lockfile candidate. I already have a requirements.txt right next to the script. Is there a way to either: 1. have script generate-metadata ignore the .venv directory OR 2. point script generate-meatdata right at the requirements.txt? For #1, adding --excludes '**/.venv/** doesn't work
GitHub
windmill/cli/script.ts at 75ee10ea65a391701875450fd0454eba93315037 ...
Open-source developer platform to power your entire infra and turn scripts into webhooks, workflows and UIs. Fastest workflow engine (13x vs Airflow). Open-source alternative to Retool and Temporal...
3 Replies
rubenf
rubenf3w ago
Yes we can probably prune it a lot more aggressively
tl_jacob
tl_jacobOP3w ago
@rubenf okay just to clarify: you are saying there's no way for me to currently do this via cli flags / config?
rubenf
rubenf3w ago
Probably but it's likely a one line change in our CLI

Did you find this page helpful?