AlperA
Windmill2y ago
Alper

i have the following use case

i have the following use case

in a flow i have two consecutive scripts:
1. fetch auth token (cached for 1 hour)
2. do request with auth token

this works well, but there is an edge case where the cached auth token is invalid which means we need to force refresh it

to solve this i thought about wrapping both steps with a loop. in case of an invalid auth token the loop would iterate once more. but it would need to override the cache and force to run the first script to fetch the auth token

any ideas for an elegant solution?
Was this page helpful?