question

Mohsen Jamali avatar image
Mohsen Jamali asked

Scheduled task is failing

Hi

The scheduled task in my studio is failing with ID: 379A4

This is the detail report { "TaskInstanceId": "C847951906A45FE8-1028", "TaskIdentifier": { "Name": "ProfilePictureInReview", "Id": "C847951906A45FE8" }, "StartedAt": "2023-04-03T02:24:08.2189181Z", "CompletedAt": "2023-04-03T02:31:11.4050029Z", "Status": "Failed", "ScheduledByUserId": "AF21613509EB6F0C", "ErrorMessage": "Failed to export player profiles - Title \"379A4\", JobId = C847951906A45FE8-1028", "ErrorWasFatal": true, "TotalPlayersInSegment": 0, "TotalPlayersProcessed": 0 }

Can you help with this?

scheduled tasks
2 comments
10 |1200

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

Neils Shi avatar image Neils Shi commented ·

Could you provide me more detail about what APIs Scheduled Task calls and does? From this we can reproduce this issue.

0 Likes 0 ·
Mohsen Jamali avatar image Mohsen Jamali Neils Shi commented ·

It runs this cloud script for recent players

handlers.ProfilePictureInReview = function (args, context) {

 var getPlayerInfo = server.GetUserData
 ({
     PlayFabId: currentPlayerId,
     Keys: ["Accepted"],
 });

 var accepted = getPlayerInfo.Data.Accepted;

 else if (accepted.Value == "N")
 {
     var request = {
         PlayFabId: currentPlayerId,
         Statistics: [{
             StatisticName: "Request",
             Value: 1
         }]
     };

     server.UpdatePlayerStatistics(request);
 }

 return accepted;

}

0 Likes 0 ·

1 Answer

·
Neils Shi avatar image
Neils Shi answered

I tested your Cloud Script and Scheduled task in my title and everything works fine with them. It appears to be caused by a PlayFab incident, you may check the details of this incident at PlayFab Status - Scheduled Tasks and GetPlayersInSegment increased error rate. Currently, this Sceduled Tasks issue has been fixed, you can check if the problem persists.

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.