question

justas.antanauskas@gmail.com avatar image
justas.antanauskas@gmail.com asked

GetCloudScriptTaskInstance returns error for task action for each player

Hello, I am making a manager scheduled task that checks status on other tasks triggered manually. So it is an automatic process that checks the status and proceedes to the next task.

I use the GetCloudScriptTaskInstance to check if a task was completed succesfully. it works well for tasks that are "Run Cloud script function once". Example: https://i.imgur.com/Q6HYYN2.png Postman: https://i.imgur.com/qKE2l7u.png

But I have a problem with tasks that are "Run actions on each player in a segment" https://i.imgur.com/ArZN5wD.png Postman: https://i.imgur.com/B0K8GGz.png

I understand that thoses tasks are a bit different in nature. First is triggered once titlewide, second is triggered for each player. But the summary data seems to be exactly the same. So atleast I would expect for this endpoint call to return the task status if it has failed or succeeded etc.

In the dashboard it seems to be working without a problem. So i think it is a bug. https://i.imgur.com/3eSu3Dq.png

CloudScripttasksscheduled 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

·
Gosen Gao avatar image
Gosen Gao answered

You can use Scheduled Task - Get Actions On Players In Segment Task Instance - REST API (PlayFab Admin) | Microsoft Learn to get Task instance info on Scheduled Task of type ActionsOnPlayerSegment.

1 comment
10 |1200

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

justas.antanauskas@gmail.com avatar image justas.antanauskas@gmail.com commented ·

Thanks I didn't expect it to be a separate call.

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.