The function below references 'stream_count' which is not defined. Likely should be = len(streams)
# Function to stop all streaming queries
def stop_all_streams(start_with = ""):
streams = get_active_streams(start_with)
if len(streams) > 0:
print(f"Stopping {stream_count} streams")
for s in streams:
try:
s.stop()
except:
pass
print(f"All stream stopped (starting with: {start_with}.")
The function below references 'stream_count' which is not defined. Likely should be = len(streams)