Transaction Action of GS2-JobQueue

ConsumeAction

Gs2JobQueue:DeleteJobByUserId

Delete job by specifying user ID

Actions for which quantity can be specified: NO

Reversible action: NO

TypeDescription
namespaceNamestringNamespace name
userIdstring
Set #{userId} to replace the currently logged in user ID.
jobNamestringJob Name
{
    "action": "Gs2JobQueue:DeleteJobByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "userId": "[string]User Id",
        "jobName": "[string]Job Name"
    }
}
action: Gs2JobQueue:DeleteJobByUserId
request:
  namespaceName: "[string]Namespace name"
  userId: "[string]User Id"
  jobName: "[string]Job Name"

AcquireAction

Gs2JobQueue:PushByUserId

Register a job by specifying a user ID

Actions for which quantity can be specified: NO

Reversible action: NO

TypeDescription
namespaceNamestringNamespace name
userIdstringSet #{userId} to replace the currently logged in user ID.
jobsJobEntry[]List of Jobs
{
    "action": "Gs2JobQueue:PushByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "userId": "[string]User Id",
        "jobs": [
            {
                "scriptId": "[string]Script GRN",
                "args": "[string]argument",
                "maxTryCount": "[int]Maximum number of attempts"
            }
        ]
    }
}
action: Gs2JobQueue:PushByUserId
request:
  namespaceName: "[string]Namespace name"
  userId: "[string]User Id"
  jobs: 
    - scriptId: "[string]Script GRN"
      args: "[string]argument"
      maxTryCount: "[int]Maximum number of attempts"