question

Tuomas Karmakallio avatar image
Tuomas Karmakallio asked

CloudScript time limit 4.5 seconds but shows 1 in report.

It has been stated that time limit for CloudScript execution is 4.5 seconds. Looking at a report, it seems that the limit is 1 second ( "LimitValue":1.0 ). Is there something funny going on?

{
  "PlayFabEnvironment": {
    "Application": "logicserver",
    "Vertical": "master",
    "Commit": "b462504",
    "Cloud": "main"
  },
  "EventNamespace": "com.playfab",
  "EntityType": "title",
  "SourceType": "BackEnd",
  "EventName": "title_exceeded_limit",
  "Timestamp": "2020-01-15T13:39:42.6685001Z",
  "EntityId": "96E1D",
  "EventId": "14e3797310ca42638e8f50fc062b7a51",
  "Source": "PlayFab",
  "Value": 1.4736985,
  "AssociatedEntities": {
    "player": [
      "79FA7D22663C0893"
    ]
  },
  "LimitDisplayName": "Processing time for a CloudScript function called by an action trigger.",
  "LimitValue": 1.0,
  "LimitId": "PlayStream:TriggeredActionCloudScriptExecutionTime",
  "Details": {
    "Function": "cleanupRedeemlinkBackup"
  },
  "Unit": "Seconds"
}
CloudScript
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

·
Citrus Yan avatar image
Citrus Yan answered

Yes, Cloud Script execution time (API call) of your title is indeed 4.5 seconds. However, your title’s Cloud Script execution time (triggered action), which is the processing time for a Cloud Script function called by an action trigger, is 1 second. That’s the reason why you are seeing the “title_exceeded_limit” event, in other words, you exceeded the limit of Cloud Script execution time (triggered action).

10 |1200

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

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.