Schedule Job or Leaderboard Reset every 28 days (cron doesnt allow this)

Is there any way to make a leaderboard reset every 28 days?

Or be able to atleast run a job in the background that runs every 28 days/4weeks?

Hello @BernardoSantos,

The CRON expressions used for leaderboard resets unfortunately do not support “every X days”, the best thing I could recommend is to set the reset for a specific day of the month, for example:

0 0 1 * *

Would reset every 1st of every month.

Hope this helps.

We really wanted to do it every 4 weeks no matter the month hmmn…

There’s a workaround which is to have separate tournaments with an end time to 28 days later and to create them programmatically at the end of each cycle (for example in the end hook). However this may need some extra considerations on how the client handles these.

For simplicity It’s likely best if you could compromise to any periodicity supported by the CRON expressions.

That would work… What exactly are the differences between tournaments and leaderboards besides the scheduling rules?

The other difference besides the extra scheduling rules is that tournaments can optionally require the users to have to Join them before submitting scores, but otherwise they’re pretty much a superset of leaderboards.

OK, thanks. This might be a solution even if it is a workaround