I don’t believe I’m catching errors in a problematic way. Here’s what the activity looks like that I’m executing via promises:
@Override
public String executeAction(String temporalId, Action action) {
logger.info("starting action");
String actionString = "%s - action %s - async %s"
.formatted(
temporalId,
action.getName(),
action.getAsync()
);
for (int i = 0; i < 3; i++) {
logger.info(
"Executing {} - step {}",
actionString,
i
);
try {
Thread.sleep(action.getTimeout());
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
}
return "Completed " + actionString;
}
I noticed that the error occurred when executing a certain activity method which I use to create a log for the run in the db, and then another for getting a dsl from the db. If I remove all of those activity method calls and just call the above executeAction method, I no longer get the error that I mentioned after restarting. However, the workflow still appears to be stuck: it doesn’t complete after restart, and new runs are not started (it’s on a cron schedule).
Below I’m including the workflow function that I’m executing (which I’ve simplified a bit but I’ve confirmed that it behaves the same way) and the event history that I see when a workflow gets stuck (after restarting the client).
@Override
public WorkflowResult execute(WorkflowExecutionConfig workflowExecutionConfig) {
this.workflowExecutionConfig = workflowExecutionConfig;
this.workflowExecutionStatus = WorkflowExecutionStatus.RUNNING;
this.exception = null;
this.workflowId = Workflow.getInfo().getWorkflowId();
this.runId = Workflow.getInfo().getRunId();
this.temporalId = String.format("%s:%s", this.workflowId, this.runId);
logger.info(
"Executing Workflow Id: {}; Run Id: {}",
this.workflowId,
this.runId
);
initRun(workflowExecutionConfig);
List<Promise<String>> promiseList = new ArrayList<>();
promiseList.add(
Async.function(
this.workflowOperationActivity::test,
temporalId,
"action 1"
)
);
promiseList.add(
Async.function(
this.workflowOperationActivity::test,
temporalId,
"action 2"
)
);
Promise.allOf(promiseList);
for (Promise<String> promise : promiseList) {
if (promise.getFailure() == null) {
logger.info(promise.get());
} else {
logger.error("An error occurred during action execution: ", promise.getFailure());
}
}
List<Promise<String>> promiseList2 = new ArrayList<>();
promiseList2.add(
Async.function(
this.workflowOperationActivity::test,
temporalId,
"action 3"
)
);
Promise.allOf(promiseList2);
for (Promise<String> promise : promiseList2) {
if (promise.getFailure() == null) {
logger.info(promise.get());
} else {
logger.error("An error occurred during action execution: ", promise.getFailure());
}
}
completeExecutionRun(WorkflowExecutionStatus.COMPLETE);
return new WorkflowResult(
"done"
);
}
{
"events": [
{
"eventId": "1",
"eventTime": "2023-02-08T16:45:40.421158545Z",
"eventType": "WorkflowExecutionStarted",
"version": "0",
"taskId": "36703395",
"workerMayIgnore": false,
"workflowExecutionStartedEventAttributes": {
"workflowType": {
"name": "OperationWorkflow"
},
"parentWorkflowNamespace": "",
"parentWorkflowNamespaceId": "",
"parentWorkflowExecution": null,
"parentInitiatedEventId": "0",
"taskQueue": {
"name": "OPERATION_TASK_QUEUE",
"kind": "Normal"
},
"input": {
"payloads": [
{
"metadata": {
"encoding": "anNvbi9wbGFpbg=="
},
"data": "eyJ0ZW1wb3JhbElkIjoiT3BlcmF0aW9uV29ya2Zsb3ctMS1jLTEiLCJhc21JZCI6MSwiY2xpZW50SWQiOjEsIm5hbWUiOiJ0ZXN0IDEiLCJwYXJhbXMiOnt9LCJ0eXBlIjoiY29tLm5ldHNwaS50ZW1wb3JhbC5jbGllbnQud29ya2Zsb3cuT3BlcmF0aW9uV29ya2Zsb3ciLCJkZXNjcmlwdGlvbiI6IlNjYW4gV29ya2Zsb3cgdGVzdCAxIGZvciBjbGllbnQgQGV2ZXJ5IDE1cywgY3JlYXRlZCAyMDIzLTAxLTE5IDA1OjQ1OjU1LjIyNiIsImNyb25TY2hlZHVsZSI6IkBldmVyeSAxNXMiLCJ0YXNrUXVldWVOYW1lIjoiT1BFUkFUSU9OX1RBU0tfUVVFVUUiLCJvcGVyYXRpb25Ec2wiOnsibmFtZSI6InRlc3Qgd29ya2Zsb3ciLCJ2ZXJzaW9uIjoiMS4wIiwidXBkYXRlZEF0IjoiMjAyMy0wMi0wNlQyMDoxODoyNy4zNDkrMDA6MDAiLCJhY3Rpb25zIjpbeyJuYW1lIjoiYWN0aW9uIDEiLCJvcmRpbmFsIjowLCJ0aW1lb3V0IjozMDAwLCJhc3luYyI6ZmFsc2UsImNoaWxkcmVuIjpbeyJuYW1lIjoiYWN0aW9uIDEuMiIsIm9yZGluYWwiOjAsInRpbWVvdXQiOjMwMDAsImFzeW5jIjpmYWxzZSwiY2hpbGRyZW4iOm51bGx9LHsibmFtZSI6ImFjdGlvbiAxLjJiIiwib3JkaW5hbCI6MCwidGltZW91dCI6MzAwMCwiYXN5bmMiOmZhbHNlLCJjaGlsZHJlbiI6bnVsbH1dfSx7Im5hbWUiOiJhY3Rpb24gMiBhc3luYyIsIm9yZGluYWwiOjAsInRpbWVvdXQiOjIwMDAwLCJhc3luYyI6dHJ1ZSwiY2hpbGRyZW4iOm51bGx9LHsibmFtZSI6ImFjdGlvbiAzIiwib3JkaW5hbCI6MSwidGltZW91dCI6MzAwMCwiYXN5bmMiOmZhbHNlLCJjaGlsZHJlbiI6bnVsbH1dfX0="
}
]
},
"workflowExecutionTimeout": "0s",
"workflowRunTimeout": "0s",
"workflowTaskTimeout": "10s",
"continuedExecutionRunId": "fb350694-11af-4d2d-b895-cf8baff258dc",
"initiator": "CronSchedule",
"continuedFailure": null,
"lastCompletionResult": {
"payloads": [
{
"metadata": {
"encoding": "anNvbi9wbGFpbg=="
},
"data": "eyJyZXN1bHQiOiJkb25lXG4ifQ=="
}
]
},
"originalExecutionRunId": "afe3f47b-3df6-4cc7-ade3-4391ea45cfa4",
"identity": "",
"firstExecutionRunId": "fb350694-11af-4d2d-b895-cf8baff258dc",
"retryPolicy": null,
"attempt": 1,
"workflowExecutionExpirationTime": null,
"cronSchedule": "@every 15s",
"firstWorkflowTaskBackoff": "5s",
"memo": null,
"searchAttributes": {
"indexedFields": {
"testId": {
"metadata": {
"encoding": "anNvbi9wbGFpbg==",
"type": "SW50"
},
"data": "MQ=="
},
"clientId": {
"metadata": {
"encoding": "anNvbi9wbGFpbg==",
"type": "SW50"
},
"data": "MQ=="
}
}
},
"prevAutoResetPoints": {
"points": []
},
"header": {
"fields": {}
},
"parentInitiatedEventVersion": "0"
}
},
{
"eventId": "2",
"eventTime": "2023-02-08T16:45:45.422540471Z",
"eventType": "WorkflowTaskScheduled",
"version": "0",
"taskId": "36703402",
"workerMayIgnore": false,
"workflowTaskScheduledEventAttributes": {
"taskQueue": {
"name": "OPERATION_TASK_QUEUE",
"kind": "Normal"
},
"startToCloseTimeout": "10s",
"attempt": 1
}
},
{
"eventId": "3",
"eventTime": "2023-02-08T16:45:45.431392916Z",
"eventType": "WorkflowTaskStarted",
"version": "0",
"taskId": "36703405",
"workerMayIgnore": false,
"workflowTaskStartedEventAttributes": {
"scheduledEventId": "2",
"identity": "124964@test-1094",
"requestId": "d4f56569-1627-4185-a66b-0b99442ca844",
"suggestContinueAsNew": false,
"historySizeBytes": "0"
}
},
{
"eventId": "4",
"eventTime": "2023-02-08T16:45:45.447092403Z",
"eventType": "WorkflowTaskCompleted",
"version": "0",
"taskId": "36703409",
"workerMayIgnore": false,
"workflowTaskCompletedEventAttributes": {
"scheduledEventId": "2",
"startedEventId": "3",
"identity": "124964@test-1094",
"binaryChecksum": "",
"workerVersioningId": null
}
},
{
"eventId": "5",
"eventTime": "2023-02-08T16:45:45.447122791Z",
"eventType": "ActivityTaskScheduled",
"version": "0",
"taskId": "36703410",
"workerMayIgnore": false,
"activityTaskScheduledEventAttributes": {
"activityId": "cf368111-b4e4-33eb-9d2d-fb2bf5377cbc",
"activityType": {
"name": "RegisterExecutionRun"
},
"taskQueue": {
"name": "OPERATION_TASK_QUEUE",
"kind": "Normal"
},
"header": {
"fields": {}
},
"input": {
"payloads": [
{
"metadata": {
"encoding": "anNvbi9wbGFpbg=="
},
"data": "ImFmZTNmNDdiLTNkZjYtNGNjNy1hZGUzLTQzOTFlYTQ1Y2ZhNCI="
},
{
"metadata": {
"encoding": "anNvbi9wbGFpbg=="
},
"data": "MQ=="
},
{
"metadata": {
"encoding": "anNvbi9wbGFpbg=="
},
"data": "IlJVTk5JTkci"
}
]
},
"scheduleToCloseTimeout": "600s",
"scheduleToStartTimeout": "600s",
"startToCloseTimeout": "600s",
"heartbeatTimeout": "0s",
"workflowTaskCompletedEventId": "4",
"retryPolicy": {
"initialInterval": "1s",
"backoffCoefficient": 2,
"maximumInterval": "100s",
"maximumAttempts": 0,
"nonRetryableErrorTypes": []
}
}
},
{
"eventId": "6",
"eventTime": "2023-02-08T16:45:45.473452655Z",
"eventType": "ActivityTaskStarted",
"version": "0",
"taskId": "36703416",
"workerMayIgnore": false,
"activityTaskStartedEventAttributes": {
"scheduledEventId": "5",
"identity": "124964@test-1094",
"requestId": "9580861e-fa35-45df-938d-2cddf6952e49",
"attempt": 1,
"lastFailure": null
}
},
{
"eventId": "7",
"eventTime": "2023-02-08T16:45:45.500327478Z",
"eventType": "ActivityTaskCompleted",
"version": "0",
"taskId": "36703417",
"workerMayIgnore": false,
"activityTaskCompletedEventAttributes": {
"result": {
"payloads": [
{
"metadata": {
"encoding": "anNvbi9wbGFpbg=="
},
"data": "NTE1"
}
]
},
"scheduledEventId": "5",
"startedEventId": "6",
"identity": "124964@test-1094"
}
},
{
"eventId": "8",
"eventTime": "2023-02-08T16:45:45.500334672Z",
"eventType": "WorkflowTaskScheduled",
"version": "0",
"taskId": "36703418",
"workerMayIgnore": false,
"workflowTaskScheduledEventAttributes": {
"taskQueue": {
"name": "124964@test-1094:ceca17c2-a27c-459e-b803-694751236141",
"kind": "Sticky"
},
"startToCloseTimeout": "10s",
"attempt": 1
}
},
{
"eventId": "9",
"eventTime": "2023-02-08T16:45:45.517118021Z",
"eventType": "WorkflowTaskStarted",
"version": "0",
"taskId": "36703422",
"workerMayIgnore": false,
"workflowTaskStartedEventAttributes": {
"scheduledEventId": "8",
"identity": "124964@test-1094",
"requestId": "84dd8d87-5362-4887-976a-9a1d17b5eb23",
"suggestContinueAsNew": false,
"historySizeBytes": "0"
}
},
{
"eventId": "10",
"eventTime": "2023-02-08T16:45:45.535409482Z",
"eventType": "WorkflowTaskCompleted",
"version": "0",
"taskId": "36703426",
"workerMayIgnore": false,
"workflowTaskCompletedEventAttributes": {
"scheduledEventId": "8",
"startedEventId": "9",
"identity": "124964@test-1094",
"binaryChecksum": "",
"workerVersioningId": null
}
},
{
"eventId": "11",
"eventTime": "2023-02-08T16:45:45.535436704Z",
"eventType": "ActivityTaskScheduled",
"version": "0",
"taskId": "36703427",
"workerMayIgnore": false,
"activityTaskScheduledEventAttributes": {
"activityId": "b28bc473-76e4-32c1-ac0d-95ec80db9560",
"activityType": {
"name": "GetOperationDsl"
},
"taskQueue": {
"name": "OPERATION_TASK_QUEUE",
"kind": "Normal"
},
"header": {
"fields": {}
},
"input": {
"payloads": [
{
"metadata": {
"encoding": "anNvbi9wbGFpbg=="
},
"data": "MQ=="
},
{
"metadata": {
"encoding": "anNvbi9wbGFpbg=="
},
"data": "MQ=="
}
]
},
"scheduleToCloseTimeout": "600s",
"scheduleToStartTimeout": "600s",
"startToCloseTimeout": "600s",
"heartbeatTimeout": "0s",
"workflowTaskCompletedEventId": "10",
"retryPolicy": {
"initialInterval": "1s",
"backoffCoefficient": 2,
"maximumInterval": "100s",
"maximumAttempts": 0,
"nonRetryableErrorTypes": []
}
}
},
{
"eventId": "12",
"eventTime": "2023-02-08T16:45:45.548948089Z",
"eventType": "ActivityTaskStarted",
"version": "0",
"taskId": "36703433",
"workerMayIgnore": false,
"activityTaskStartedEventAttributes": {
"scheduledEventId": "11",
"identity": "124964@test-1094",
"requestId": "f08bf1bc-6000-4ca1-8552-5c542236ff31",
"attempt": 1,
"lastFailure": null
}
},
{
"eventId": "13",
"eventTime": "2023-02-08T16:45:45.566799784Z",
"eventType": "ActivityTaskCompleted",
"version": "0",
"taskId": "36703434",
"workerMayIgnore": false,
"activityTaskCompletedEventAttributes": {
"result": {
"payloads": [
{
"metadata": {
"encoding": "anNvbi9wbGFpbg=="
},
"data": "IntcbiAgICBcIm5hbWVcIjogXCJ0ZXN0IHdvcmtmbG93XCIsXG4gICAgXCJ2ZXJzaW9uXCI6IFwiMS4wXCIsXG4gICAgXCJ1cGRhdGVkQXRcIjogMTY3NTcxNDcwNzM0OSxcbiAgICBcImFjdGlvbnNcIjogW3tcbiAgICAgICAgICAgIFwibmFtZVwiOiBcImFjdGlvbiAxXCIsXG4gICAgICAgICAgICBcIm9yZGluYWxcIjogMCxcbiAgICAgICAgICAgIFwidGltZW91dFwiOiAzMDAwLFxuICAgICAgICAgICAgXCJhc3luY1wiOiBmYWxzZSxcbiAgICAgICAgICAgIFwiY2hpbGRyZW5cIjogW3tcbiAgICAgICAgICAgICAgICAgICAgXCJuYW1lXCI6IFwiYWN0aW9uIDEuMlwiLFxuICAgICAgICAgICAgICAgICAgICBcIm9yZGluYWxcIjogMCxcbiAgICAgICAgICAgICAgICAgICAgXCJ0aW1lb3V0XCI6IDMwMDAsXG4gICAgICAgICAgICAgICAgICAgIFwiYXN5bmNcIjogZmFsc2UsXG4gICAgICAgICAgICAgICAgICAgIFwiY2hpbGRyZW5cIjogbnVsbFxuICAgICAgICAgICAgICAgIH0sIHtcbiAgICAgICAgICAgICAgICAgICAgXCJuYW1lXCI6IFwiYWN0aW9uIDEuMmJcIixcbiAgICAgICAgICAgICAgICAgICAgXCJvcmRpbmFsXCI6IDAsXG4gICAgICAgICAgICAgICAgICAgIFwidGltZW91dFwiOiAzMDAwLFxuICAgICAgICAgICAgICAgICAgICBcImFzeW5jXCI6IGZhbHNlLFxuICAgICAgICAgICAgICAgICAgICBcImNoaWxkcmVuXCI6IG51bGxcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICBdXG4gICAgICAgIH0sIHtcbiAgICAgICAgICAgIFwibmFtZVwiOiBcImFjdGlvbiAyIGFzeW5jXCIsXG4gICAgICAgICAgICBcIm9yZGluYWxcIjogMCxcbiAgICAgICAgICAgIFwidGltZW91dFwiOiAyMDAwMCxcbiAgICAgICAgICAgIFwiYXN5bmNcIjogdHJ1ZSxcbiAgICAgICAgICAgIFwiY2hpbGRyZW5cIjogbnVsbFxuICAgICAgICB9LCB7XG4gICAgICAgICAgICBcIm5hbWVcIjogXCJhY3Rpb24gM1wiLFxuICAgICAgICAgICAgXCJvcmRpbmFsXCI6IDEsXG4gICAgICAgICAgICBcInRpbWVvdXRcIjogMzAwMCxcbiAgICAgICAgICAgIFwiYXN5bmNcIjogZmFsc2UsXG4gICAgICAgICAgICBcImNoaWxkcmVuXCI6IG51bGxcbiAgICAgICAgfVxuICAgIF1cbn0i"
}
]
},
"scheduledEventId": "11",
"startedEventId": "12",
"identity": "124964@test-1094"
}
},
{
"eventId": "14",
"eventTime": "2023-02-08T16:45:45.566805645Z",
"eventType": "WorkflowTaskScheduled",
"version": "0",
"taskId": "36703435",
"workerMayIgnore": false,
"workflowTaskScheduledEventAttributes": {
"taskQueue": {
"name": "124964@test-1094:ceca17c2-a27c-459e-b803-694751236141",
"kind": "Sticky"
},
"startToCloseTimeout": "10s",
"attempt": 1
}
},
{
"eventId": "15",
"eventTime": "2023-02-08T16:45:45.577978226Z",
"eventType": "WorkflowTaskStarted",
"version": "0",
"taskId": "36703439",
"workerMayIgnore": false,
"workflowTaskStartedEventAttributes": {
"scheduledEventId": "14",
"identity": "124964@test-1094",
"requestId": "cfd34f25-4867-4dd1-8250-d40e8fcc461c",
"suggestContinueAsNew": false,
"historySizeBytes": "0"
}
},
{
"eventId": "16",
"eventTime": "2023-02-08T16:45:45.599749368Z",
"eventType": "WorkflowTaskCompleted",
"version": "0",
"taskId": "36703443",
"workerMayIgnore": false,
"workflowTaskCompletedEventAttributes": {
"scheduledEventId": "14",
"startedEventId": "15",
"identity": "124964@test-1094",
"binaryChecksum": "",
"workerVersioningId": null
}
},
{
"eventId": "17",
"eventTime": "2023-02-08T16:45:45.599779656Z",
"eventType": "ActivityTaskScheduled",
"version": "0",
"taskId": "36703444",
"workerMayIgnore": false,
"activityTaskScheduledEventAttributes": {
"activityId": "e56a729d-12dd-3497-8708-6d080b0517b0",
"activityType": {
"name": "Test"
},
"taskQueue": {
"name": "OPERATION_TASK_QUEUE",
"kind": "Normal"
},
"header": {
"fields": {}
},
"input": {
"payloads": [
{
"metadata": {
"encoding": "anNvbi9wbGFpbg=="
},
"data": "Ik9wZXJhdGlvbldvcmtmbG93LTEtYy0xOmFmZTNmNDdiLTNkZjYtNGNjNy1hZGUzLTQzOTFlYTQ1Y2ZhNCI="
},
{
"metadata": {
"encoding": "anNvbi9wbGFpbg=="
},
"data": "ImFjdGlvbiAxIg=="
}
]
},
"scheduleToCloseTimeout": "600s",
"scheduleToStartTimeout": "600s",
"startToCloseTimeout": "600s",
"heartbeatTimeout": "0s",
"workflowTaskCompletedEventId": "16",
"retryPolicy": {
"initialInterval": "1s",
"backoffCoefficient": 2,
"maximumInterval": "100s",
"maximumAttempts": 0,
"nonRetryableErrorTypes": []
}
}
},
{
"eventId": "18",
"eventTime": "2023-02-08T16:45:45.599803702Z",
"eventType": "ActivityTaskScheduled",
"version": "0",
"taskId": "36703445",
"workerMayIgnore": false,
"activityTaskScheduledEventAttributes": {
"activityId": "13b21c30-11f6-3517-a771-7e117fc2aa92",
"activityType": {
"name": "Test"
},
"taskQueue": {
"name": "OPERATION_TASK_QUEUE",
"kind": "Normal"
},
"header": {
"fields": {}
},
"input": {
"payloads": [
{
"metadata": {
"encoding": "anNvbi9wbGFpbg=="
},
"data": "Ik9wZXJhdGlvbldvcmtmbG93LTEtYy0xOmFmZTNmNDdiLTNkZjYtNGNjNy1hZGUzLTQzOTFlYTQ1Y2ZhNCI="
},
{
"metadata": {
"encoding": "anNvbi9wbGFpbg=="
},
"data": "ImFjdGlvbiAyIg=="
}
]
},
"scheduleToCloseTimeout": "600s",
"scheduleToStartTimeout": "600s",
"startToCloseTimeout": "600s",
"heartbeatTimeout": "0s",
"workflowTaskCompletedEventId": "16",
"retryPolicy": {
"initialInterval": "1s",
"backoffCoefficient": 2,
"maximumInterval": "100s",
"maximumAttempts": 0,
"nonRetryableErrorTypes": []
}
}
},
{
"eventId": "19",
"eventTime": "2023-02-08T16:45:45.617185292Z",
"eventType": "ActivityTaskStarted",
"version": "0",
"taskId": "36703453",
"workerMayIgnore": false,
"activityTaskStartedEventAttributes": {
"scheduledEventId": "17",
"identity": "124964@test-1094",
"requestId": "092a15ee-85a0-473e-ae6a-67292d949f34",
"attempt": 1,
"lastFailure": null
}
},
{
"eventId": "20",
"eventTime": "2023-02-08T16:45:45.611671028Z",
"eventType": "ActivityTaskStarted",
"version": "0",
"taskId": "36703454",
"workerMayIgnore": false,
"activityTaskStartedEventAttributes": {
"scheduledEventId": "18",
"identity": "124964@test-1094",
"requestId": "f03c5eb3-1f7b-49ec-b3a4-c1d284b46795",
"attempt": 1,
"lastFailure": null
}
},
{
"eventId": "21",
"eventTime": "2023-02-08T16:55:45.602108889Z",
"eventType": "ActivityTaskTimedOut",
"version": "0",
"taskId": "36703455",
"workerMayIgnore": false,
"activityTaskTimedOutEventAttributes": {
"failure": {
"message": "activity ScheduleToClose timeout",
"source": "Server",
"stackTrace": "",
"encodedAttributes": null,
"cause": null,
"timeoutFailureInfo": {
"timeoutType": "ScheduleToClose",
"lastHeartbeatDetails": null
}
},
"scheduledEventId": "17",
"startedEventId": "19",
"retryState": "NonRetryableFailure"
}
},
{
"eventId": "22",
"eventTime": "2023-02-08T16:55:45.602113739Z",
"eventType": "ActivityTaskTimedOut",
"version": "0",
"taskId": "36703456",
"workerMayIgnore": false,
"activityTaskTimedOutEventAttributes": {
"failure": {
"message": "activity ScheduleToClose timeout",
"source": "Server",
"stackTrace": "",
"encodedAttributes": null,
"cause": null,
"timeoutFailureInfo": {
"timeoutType": "ScheduleToClose",
"lastHeartbeatDetails": null
}
},
"scheduledEventId": "18",
"startedEventId": "20",
"retryState": "NonRetryableFailure"
}
},
{
"eventId": "23",
"eventTime": "2023-02-08T16:55:45.602117626Z",
"eventType": "WorkflowTaskScheduled",
"version": "0",
"taskId": "36703457",
"workerMayIgnore": false,
"workflowTaskScheduledEventAttributes": {
"taskQueue": {
"name": "OPERATION_TASK_QUEUE",
"kind": "Normal"
},
"startToCloseTimeout": "10s",
"attempt": 1
}
},
{
"eventId": "24",
"eventTime": "2023-02-08T16:55:45.618226278Z",
"eventType": "WorkflowTaskStarted",
"version": "0",
"taskId": "36703460",
"workerMayIgnore": false,
"workflowTaskStartedEventAttributes": {
"scheduledEventId": "23",
"identity": "121768@test-1094",
"requestId": "2ccd087a-8a7a-4445-b849-1d519c538621",
"suggestContinueAsNew": false,
"historySizeBytes": "0"
}
},
{
"eventId": "25",
"eventTime": "2023-02-08T16:55:45.657957965Z",
"eventType": "WorkflowTaskCompleted",
"version": "0",
"taskId": "36703464",
"workerMayIgnore": false,
"workflowTaskCompletedEventAttributes": {
"scheduledEventId": "23",
"startedEventId": "24",
"identity": "121768@test-1094",
"binaryChecksum": "",
"workerVersioningId": null
}
},
{
"eventId": "26",
"eventTime": "2023-02-08T16:55:45.657981630Z",
"eventType": "ActivityTaskScheduled",
"version": "0",
"taskId": "36703465",
"workerMayIgnore": false,
"activityTaskScheduledEventAttributes": {
"activityId": "7ade32f1-acae-3033-b51b-cb2052947096",
"activityType": {
"name": "Test"
},
"taskQueue": {
"name": "OPERATION_TASK_QUEUE",
"kind": "Normal"
},
"header": {
"fields": {}
},
"input": {
"payloads": [
{
"metadata": {
"encoding": "anNvbi9wbGFpbg=="
},
"data": "Ik9wZXJhdGlvbldvcmtmbG93LTEtYy0xOmFmZTNmNDdiLTNkZjYtNGNjNy1hZGUzLTQzOTFlYTQ1Y2ZhNCI="
},
{
"metadata": {
"encoding": "anNvbi9wbGFpbg=="
},
"data": "ImFjdGlvbiAzIg=="
}
]
},
"scheduleToCloseTimeout": "600s",
"scheduleToStartTimeout": "600s",
"startToCloseTimeout": "600s",
"heartbeatTimeout": "0s",
"workflowTaskCompletedEventId": "25",
"retryPolicy": {
"initialInterval": "1s",
"backoffCoefficient": 2,
"maximumInterval": "100s",
"maximumAttempts": 0,
"nonRetryableErrorTypes": []
}
}
}
]
}