I've set up a few streams and tasks that consume these streams in Snowflake and at times I need to recreate them because they became stale. I've read through the documentation and there is nothing in my account that causes the issue. The tasks are running every 5 minutes and there is data flowing through every minute. The task scripts take the data in the streams and use a MERGE statement. At times the stream just becomes stale and then the task starts failing.
How do I prevent this?