question

Talha avatar image
Talha asked

Scheduled Tasks and DailyLeaderboard.

Unity3D game.

How to Sync Scheduled Tasks with a Leaderboard of reset frequency(Daily).

e.g

After each time the leaderboard is reset, we want to call a cloudscript for everyplayer playing the game.

What should be the Cron expression?

Thankyou.

CloudScriptLeaderboards and Statisticsscheduled tasks
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

First, I would recommend reviewing this post:

https://community.playfab.com/questions/11800/what-is-the-processing-rate-of-a-scheduled-task.html

As you can see by that, at this time a Scheduled Task is going to take an amount of time determined by the number of players. For a large game, that could be considerably longer than an hour. Depending on your specific gameplay design, a better solution might be to run the Cloud Script logic for the player when they sign into the game, to update their relevant values at that point.

3 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Talha avatar image Talha commented ·

Thankyou Brendan. It's good to hear from you:)

We had to think hard and we've designed that module in a way now that it is based on CloudScript logic. Just one last hiccup, what is the limit on frequency of writing and reading PlayerInternalData? right now for writing we have 5 mins interval(total of 15-20 times a day,depends upon how many times the cloudscript was called and a particular statement is satisfed) and for reading PlayerInternalData: it's every 2 mins.

is that alright?

0 Likes 0 ·
Talha avatar image Talha Talha commented ·

Hi, Could you please tell us what is the frequency of writing and reading playerInternalData?

Is reading and writing every 2 mins reasonalble?

0 Likes 0 ·
JayZuo avatar image JayZuo ♦ Talha commented ·

Writing for 5 mins interval and reading for every 2 mins should be OK.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.