Perpetual Scripts in dev
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!