Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by Talha · Dec 09, 2019 at 07:13 PM · CloudScriptLeaderboards and Statisticsscheduled tasks

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.

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Brendan · Dec 09, 2019 at 08:36 PM

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.

Comment
Talha

People who like this

1 Show 3 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Talha · Dec 11, 2019 at 08:42 PM 0
Share

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?

avatar image Talha Talha · Dec 30, 2019 at 10:39 AM 0
Share

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

Is reading and writing every 2 mins reasonalble?

avatar image Jay Zuo ♦ Talha · Jan 03, 2020 at 08:48 AM 0
Share

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

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    Get position for player in leaderboard 1 Answer

    How to give items to players who are Top 10 in a leaderboard ,How can I give an item to players who are Top 10 in the leaderboard? 1 Answer

    Security on updating statistics from client & cloud script 1 Answer

    How do I add currency to a single user and then to ALL users?,How do I add currency to a single user and then to all users? 1 Answer

    Cloud Script UpdatePlayerStatistics 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges