[SPARK-3562]Periodic cleanup event logs

Similarly, could you use a `Duration` instead of 604800?