I am developing an application with Structured Streaming in Databricks in which I would like to control repeated events. So far the application does: