question

mgambrell avatar image
mgambrell asked

dashboard: bug in italicised warning message in Execute CloudScript action for Rules and Tasks


"CloudScript functions triggered from PlayStream actions are limited to 1 second of CPU time."

This displays when setting up an "Execute Cloudscript" action for a task.

This isn't about PlayStream actions. It seems confusd.

Bug #1: It isn't clear whether the 1 second limit applies to cloudscripts run from tasks.

Bug #2: That message doesn't make sense anyway. Let's look at the Rules tab. I have a list of "events" to pick from, none of which are called "playstream" events, but there is a tooltip beneath it that says "learn about built-in playstream events". OK, so I guess those are strangely named playstream events. The italicised warning should then be "CloudScript functions triggered from PlayStream events are limited to 1 second of CPU time"

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

The way to think of PlayStream is as the processing module for all events in PlayFab, bar none. So all events on the Rules tab are, in fact, PlayStream events. Tasks are also part of the PlayStream system, so the same limits apply - a CloudScript handler started via a Task is limited in the same way that it would be if launched from a PlayStream event trigger. Thanks - we'll get that clarified in the docs.

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.