WindmillWWindmill
Powered by
AlperA
Windmill•2y 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?
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

I have the general roadmap of windmill
rubenfRrubenf / general
4y ago
Now I use the VSCode extension dev
zsnmwyZzsnmwy / general
3y ago
following https www windmill dev docs
NackiNNacki / general
3y ago