When the server restarts all the active tasks are killed and the configuration note keeps saying the status is "Running"
I suggest that after the server starts, we should reset the status of the existing notes with status "Running".
You could query all the notes by the status field in the content, for example content.status=Running. @carlosmondra is it possible to enable this query param?
Another option is to iterate through all the active_venues, get the venue_id/-/Assignment_Configuration notes and reset the status for the ones that were running, I would suggest to use another state name like "Cancelled".