WindmillWWindmill
Powered by
tl_jacobT
Windmill•4mo ago•
1 reply
tl_jacob

Perpetual Scripts in dev

Hey team! I'm looking to use perpetual scripts to run a job queue listener (similar to this example), but I'd like a clean way to disable it in my dev environment (don't want a perpetual worker constantly running locally).
Is there a recommended pattern for this? Ideally something like:

- A config flag or environment variable that prevents the perpetual script from starting
- Or a way to conditionally enable/disable perpetual scripts per environment

Currently considering just wrapping my listener in an env check, but I think I'll still run into the problem of the job just repeatedly restarting.

Thanks!
Running services with perpetual scripts | Windmill
Perpetual scripts restart upon ending unless canceled.
WindmillJoin
3,362Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
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

Using perpetual script to trigger flow
TwoToTooTTwoToToo / help
5mo ago
Skip auto-registering scripts in wmill
pixeleetPpixeleet / help
2y ago
Sourcing PowerShell scripts from other PowerShell scripts
DannlyDDannly / help
2y ago
How to sync scripts from windmill cloud to local dev machine
CasperCCasper / help
13mo ago