In my game I want to run a Cloud Code script to save the top 10 entries of a monthly leaderboard in a Game Data entry right before this leaderboard resets. I want to do this every month, automatically. I'd rather not mess with partitioned leaderboards just to do this.
To my understanding, both the "Every Day" cloud code script and leaderboard resets occur at 00:00 UTC.Which one happens first? Is there a better way?