Wholteza
Explore posts from serversNo variable permissions on scheduled runs only
We are running a couple of scheduled jobs in windmill what make use of variables as input parameters.
Basically we have flows with one step in them which is one python script that has variables configured for their input.
When triggering them manually by user 4's account they work fine.
But if we configure a schedule it fails on every scheduled run due to a lack of permissions.
How can we configure so that these jobs have permissions to the variables on a scheduled run?
All flows are located in the same directory "folder" as the variables that they use.
Thankful for any help we can get 😊
{
"error": {
"name": "InternalErr",
"message": "Error during isolated evaluation of expression
variable('f/folder/VARIABLE_NAME')
:\nError: Not authorized: Variable exists but you don't have access to it:\nvariable perms: {}\nfolder perms: {\n "g/all": false,\n "u/user1": true,\n "u/user2": true,\n "u/user3": true,\n "u/user4": true,\n "u/user5": true\n}\n at async variable (<anon>:9:12)\n at async <anon>:46:13"
}7 replies
Share state between server route and SSR context
I have a server route in a nuxt 3 application that has SSR enabled.
When someone posts to that route i want to set a flag to true.
Then when another requests comes in to render a page i want to read that flag and if it is true i want to perform an action and then reset the flag.
From my exploration of nuxt, nitro and h3 this does not seem to be possible.
Is it possible to share state like this, or should i try to find another solution to my problem?
10 replies