question

max avatar image
max asked

Cloud Script Time limit exceeded - What happens?

What happens if the Cloud Script execution time limit is exceeded halfway through the call?

Will the state of the database be reverted to before the call?

Or will the mess be left in the database that a not properly finished CloudScript call could have created?

I've recently seen a CloudScript call exceed the limit of 1 seconds for no apparent reason, when subsequent calls took only 0.1 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

·
brendan avatar image
brendan answered

When you hit the time limit on Cloud Script execution, the script exits. There is no rollback for any operations which have occurred up to that point. Without knowing the specifics of your Cloud Script call or your test, it's very hard to say why a call might take longer. Can you provide specifics - Title ID, PlayFab ID, test inputs, the Rule that's firing the Cloud Script, etc.?

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.