Our TeamCity cleanup process is currently at 9+ hours. We recently changed the cleanup settings to be more liberal so that's why it's taking longer, but still longer than I expected. Are there any risks to restarting the service during cleanup so we can continue to get our builds and let the cleanup continue tonight over night?
Since TeamCIty 7.1.4 it's more safe to restart the server during cleanup. Until then, restarting will most probably result in orphaned entries itnhe database which will only be cleaned when you upgrade to TeamCity 8.0+ (as we have implemented the feature there).