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
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
userId | string | |
Set #{userId} to replace the currently logged in user ID. | ||
jobName | string | Job 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
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
userId | string | Set #{userId} to replace the currently logged in user ID. |
jobs | JobEntry[] | 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"