Decorators with def main() not working in python
I am running into the following issue when I use a decorator with def main()
Wondering if this is windmill runtime specific config issue? It works well if I use the decorator on any other method and call it inside main.
See below the code:
8 Replies
We will take a look
Thank you
This is now fixed
@Hugo The solution works fine when the decorator is declared in the same file, but if you import the decorator from a separate script, I get this error:
Here is the code:
try calling a function without it being a decorator. I think it's the import that fails
(the function being in the relative import)
Yes, it also fails, is it bc it's in a directory?
did you deploy the relative script?
you need to before it's importable
I didn't 😅, it's working now, thanks