Open Girgitt opened 8 months ago
When I edited description I might have assigned @rubenfiszel by accident and have no way to revert this action. Sorry for my sloppiness if this was not automation related to handling new issues.
you should look into the folders starting with /tmp/windmill/cache/pip/wmill== in the workers of the runs that fail to see if you have a faulty wmill that as been cached in there. Also, try to reproduce without podman in the plain docker-compose to see if it's not a podman issue
I will test docker. I also checked cache/pip folders but working and failing workers have the same content
containers: windmill_worker_N have proper content in /tmp/windmill/cache/pip/
root@e4f5e53e5dda:/usr/src/app# ls /tmp/windmill/cache/pip/wmill\=\=1.298.0/
wmill wmill-1.298.0.dist-info
containers: windmill_worker_native_N have empty /tmp/windmill/cache/pip/
runs work ok on worker_1 and always fail on the same workers (worker_2, worker_3)
Is there a command to clear pip cache and re-install dependencies for a script on a specific or all workers ?
Original compose config run with docker-compose does not experience this issue.
With podman-compose it looks like the first worker (which installs dependencies) is able to execute the script but other fail despite having pip cache available on the shared volume mapped to each worker container.
However after restarting the whole compose setup all workers fail to execute python script.
Only after the pip cache is deleted from the mapped volume on next run of the script first worker that runs it and installs dependencies again is able to execute the script and other workers always fail.
Describe the bug
Hi a fresh windmill user here. When I try to run example python script I would say 3 out of 5 times I get AttributeError exception on function calls for wmill.get_state() and wmill.set_state()
In my environment I use docker compose file from windmill project (as decribed in Docker section here: https://www.windmill.dev/docs/advanced/self_host) started with podman-compose with minor changes (fixed container versions and podman-related fixes):
environemt details:
To reproduce
Expected behavior
script executes every time without errors
Screenshots
test run which fails
next test run that succeeds:
Browser information
Chrome Version 122.0.6261.111 (Official Build) (64-bit) on Linux Mint 20
Application version
windmill versions (backend) v1.2980.0
Additional Context
Restarting worker and worker_native containers does not change the behavior.