From c1f22b170173ee5b953ae294dea39deaffeb1847 Mon Sep 17 00:00:00 2001 From: Abhishek Jha Date: Tue, 21 May 2024 15:44:53 -0700 Subject: [PATCH 1/3] Replay test for continue as new --- docker-compose.yml | 68 + .../HelloActivityReplayTest.java | 15 +- .../{ => replaytests}/HelloActivity.json | 0 .../resources/replaytests/HelloPeriodic.json | 1541 +++++++++++++++++ 4 files changed, 1622 insertions(+), 2 deletions(-) create mode 100644 docker-compose.yml rename src/test/java/com/uber/cadence/samples/{hello => replaytests}/HelloActivityReplayTest.java (69%) rename src/test/resources/{ => replaytests}/HelloActivity.json (100%) create mode 100644 src/test/resources/replaytests/HelloPeriodic.json diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..eecb5c95 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,68 @@ +version: '3' +services: + cassandra: + image: cassandra:4.1.1 + ports: + - "9042:9042" + environment: + - "MAX_HEAP_SIZE=256M" + - "HEAP_NEWSIZE=128M" + healthcheck: + test: ["CMD", "cqlsh", "-u cassandra", "-p cassandra" ,"-e describe keyspaces"] + interval: 15s + timeout: 30s + retries: 10 + prometheus: + image: prom/prometheus:latest + volumes: + - ./prometheus:/etc/prometheus + command: + - '--config.file=/etc/prometheus/prometheus.yml' + ports: + - '9090:9090' + node-exporter: + image: prom/node-exporter + ports: + - '9100:9100' + cadence: + image: ubercadence/server:master-auto-setup + ports: + - "8000:8000" + - "8001:8001" + - "8002:8002" + - "8003:8003" + - "7933:7933" + - "7934:7934" + - "7935:7935" + - "7939:7939" + - "7833:7833" + environment: + - "CASSANDRA_SEEDS=cassandra" + - "PROMETHEUS_ENDPOINT_0=0.0.0.0:8000" + - "PROMETHEUS_ENDPOINT_1=0.0.0.0:8001" + - "PROMETHEUS_ENDPOINT_2=0.0.0.0:8002" + - "PROMETHEUS_ENDPOINT_3=0.0.0.0:8003" + - "DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development.yaml" + - "LOG_LEVEL=debug" + depends_on: + cassandra: + condition: service_healthy + prometheus: + condition: service_started + cadence-web: + image: ubercadence/web:latest + environment: + - "CADENCE_TCHANNEL_PEERS=cadence:7933" + ports: + - "8088:8088" + depends_on: + - cadence + grafana: + image: grafana/grafana + volumes: + - ./grafana:/etc/grafana + user: "1000" + depends_on: + - prometheus + ports: + - '3000:3000' diff --git a/src/test/java/com/uber/cadence/samples/hello/HelloActivityReplayTest.java b/src/test/java/com/uber/cadence/samples/replaytests/HelloActivityReplayTest.java similarity index 69% rename from src/test/java/com/uber/cadence/samples/hello/HelloActivityReplayTest.java rename to src/test/java/com/uber/cadence/samples/replaytests/HelloActivityReplayTest.java index 94a5072e..2cc10b43 100644 --- a/src/test/java/com/uber/cadence/samples/hello/HelloActivityReplayTest.java +++ b/src/test/java/com/uber/cadence/samples/replaytests/HelloActivityReplayTest.java @@ -15,8 +15,10 @@ * permissions and limitations under the License. */ -package com.uber.cadence.samples.hello; +package com.uber.cadence.samples.replaytests; +import com.uber.cadence.samples.hello.HelloActivity; +import com.uber.cadence.samples.hello.HelloPeriodic; import com.uber.cadence.testing.WorkflowReplayer; import org.junit.Test; @@ -28,9 +30,18 @@ // Or from Cadence Web UI. (You may need to put history file in resources folder; and change // workflowType in the first event of history). public class HelloActivityReplayTest { + + //simple replayer test which checks the current workflow execution with the definition: should pass @Test public void testReplay() throws Exception { WorkflowReplayer.replayWorkflowExecutionFromResource( - "HelloActivity.json", HelloActivity.GreetingWorkflowImpl.class); + "replaytests/HelloActivity.json", HelloActivity.GreetingWorkflowImpl.class); + } + + //continue-as-new case for replayer tests + @Test + public void testReplay_continueAsNew() throws Exception { + WorkflowReplayer.replayWorkflowExecutionFromResource( + "replaytests/HelloPeriodic.json", HelloPeriodic.GreetingWorkflowImpl.class); } } diff --git a/src/test/resources/HelloActivity.json b/src/test/resources/replaytests/HelloActivity.json similarity index 100% rename from src/test/resources/HelloActivity.json rename to src/test/resources/replaytests/HelloActivity.json diff --git a/src/test/resources/replaytests/HelloPeriodic.json b/src/test/resources/replaytests/HelloPeriodic.json new file mode 100644 index 00000000..e677fcdb --- /dev/null +++ b/src/test/resources/replaytests/HelloPeriodic.json @@ -0,0 +1,1541 @@ +[ + { + "eventId": 1, + "timestamp": 1716329680328096722, + "eventType": "WorkflowExecutionStarted", + "version": -24, + "taskId": 1048576, + "workflowExecutionStartedEventAttributes": { + "workflowType": { + "name": "GreetingWorkflow::greetPeriodically" + }, + "taskList": { + "name": "HelloPeriodic" + }, + "input": "WyJXb3JsZCIseyJzZWNvbmRzIjoxLCJuYW5vcyI6MH1d", + "executionStartToCloseTimeoutSeconds": 300, + "taskStartToCloseTimeoutSeconds": 10, + "originalExecutionRunId": "ff656e08-fc57-437f-a619-0f636d99528f", + "firstExecutionRunId": "ff656e08-fc57-437f-a619-0f636d99528f", + "firstDecisionTaskBackoffSeconds": 0, + "memo": {}, + "searchAttributes": {}, + "header": {}, + "PartitionConfig": null, + "requestId": "a773168e-ed68-4f1a-9b72-b94953ad0aae" + } + }, + { + "eventId": 2, + "timestamp": 1716329680328132347, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048577, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "HelloPeriodic" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 3, + "timestamp": 1716329680347556764, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048582, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 2, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "1deb2150-1e9f-45c3-9569-8436ce307bdc" + } + }, + { + "eventId": 4, + "timestamp": 1716329680467219847, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048585, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 2, + "startedEventId": 3, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 5, + "timestamp": 1716329680467323097, + "eventType": "ActivityTaskScheduled", + "version": -24, + "taskId": 1048586, + "activityTaskScheduledEventAttributes": { + "activityId": "0", + "activityType": { + "name": "GreetingActivities::greet" + }, + "taskList": { + "name": "HelloPeriodic" + }, + "input": "IkhlbGxvIFdvcmxkISI=", + "scheduleToCloseTimeoutSeconds": 10, + "scheduleToStartTimeoutSeconds": 10, + "startToCloseTimeoutSeconds": 10, + "heartbeatTimeoutSeconds": 10, + "decisionTaskCompletedEventId": 4, + "header": {} + } + }, + { + "eventId": 6, + "timestamp": 1716329680467345305, + "eventType": "ActivityTaskStarted", + "version": -24, + "taskId": 1048587, + "activityTaskStartedEventAttributes": { + "scheduledEventId": 5, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "f8a647c3-118e-472e-9979-3c1f880c674f", + "lastFailureReason": "" + } + }, + { + "eventId": 7, + "timestamp": 1716329680488831514, + "eventType": "ActivityTaskCompleted", + "version": -24, + "taskId": 1048590, + "activityTaskCompletedEventAttributes": { + "scheduledEventId": 5, + "startedEventId": 6, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 8, + "timestamp": 1716329680488841680, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048592, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "sticky:abhishek-jha-CVW2DD69JF:eedd2819-64c9-44c5-9ba2-cc54b3159e02" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 9, + "timestamp": 1716329680517436430, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048596, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 8, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "d0df01b0-7d1c-4fa4-bd5f-4fd7f3f4a3fb" + } + }, + { + "eventId": 10, + "timestamp": 1716329680553318889, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048599, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 8, + "startedEventId": 9, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 11, + "timestamp": 1716329680553601389, + "eventType": "TimerStarted", + "version": -24, + "taskId": 1048600, + "timerStartedEventAttributes": { + "timerId": "1", + "startToFireTimeoutSeconds": 1, + "decisionTaskCompletedEventId": 10 + } + }, + { + "eventId": 12, + "timestamp": 1716329827551258887, + "eventType": "TimerFired", + "version": -24, + "taskId": 1048603, + "timerFiredEventAttributes": { + "timerId": "1", + "startedEventId": 11 + } + }, + { + "eventId": 13, + "timestamp": 1716329827551913012, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048605, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "sticky:abhishek-jha-CVW2DD69JF:eedd2819-64c9-44c5-9ba2-cc54b3159e02" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 14, + "timestamp": 1716329827586506887, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048609, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 13, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "15c9352e-6a96-4358-84b6-1a214ec29d46" + } + }, + { + "eventId": 15, + "timestamp": 1716329827633038012, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048612, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 13, + "startedEventId": 14, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 16, + "timestamp": 1716329827633100429, + "eventType": "ActivityTaskScheduled", + "version": -24, + "taskId": 1048613, + "activityTaskScheduledEventAttributes": { + "activityId": "2", + "activityType": { + "name": "GreetingActivities::greet" + }, + "taskList": { + "name": "HelloPeriodic" + }, + "input": "IkhlbGxvIFdvcmxkISI=", + "scheduleToCloseTimeoutSeconds": 10, + "scheduleToStartTimeoutSeconds": 10, + "startToCloseTimeoutSeconds": 10, + "heartbeatTimeoutSeconds": 10, + "decisionTaskCompletedEventId": 15, + "header": {} + } + }, + { + "eventId": 17, + "timestamp": 1716329827633134429, + "eventType": "ActivityTaskStarted", + "version": -24, + "taskId": 1048614, + "activityTaskStartedEventAttributes": { + "scheduledEventId": 16, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "f4888ab8-e79c-4925-b6f3-58fcf88867ea", + "lastFailureReason": "" + } + }, + { + "eventId": 18, + "timestamp": 1716329827651911971, + "eventType": "ActivityTaskCompleted", + "version": -24, + "taskId": 1048617, + "activityTaskCompletedEventAttributes": { + "scheduledEventId": 16, + "startedEventId": 17, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 19, + "timestamp": 1716329827651939012, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048619, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "sticky:abhishek-jha-CVW2DD69JF:eedd2819-64c9-44c5-9ba2-cc54b3159e02" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 20, + "timestamp": 1716329827672114596, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048623, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 19, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "496d63cd-c83c-471f-b8e2-1d89e5f4df4c" + } + }, + { + "eventId": 21, + "timestamp": 1716329827710179012, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048626, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 19, + "startedEventId": 20, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 22, + "timestamp": 1716329827710213012, + "eventType": "TimerStarted", + "version": -24, + "taskId": 1048627, + "timerStartedEventAttributes": { + "timerId": "3", + "startToFireTimeoutSeconds": 1, + "decisionTaskCompletedEventId": 21 + } + }, + { + "eventId": 23, + "timestamp": 1716329828727715263, + "eventType": "TimerFired", + "version": -24, + "taskId": 1048630, + "timerFiredEventAttributes": { + "timerId": "3", + "startedEventId": 22 + } + }, + { + "eventId": 24, + "timestamp": 1716329828727869513, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048632, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "sticky:abhishek-jha-CVW2DD69JF:eedd2819-64c9-44c5-9ba2-cc54b3159e02" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 25, + "timestamp": 1716329828755164846, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048636, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 24, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "a9b4e373-e1d8-4338-8dd0-c184230ec7c1" + } + }, + { + "eventId": 26, + "timestamp": 1716329828800287930, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048639, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 24, + "startedEventId": 25, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 27, + "timestamp": 1716329828800360221, + "eventType": "ActivityTaskScheduled", + "version": -24, + "taskId": 1048640, + "activityTaskScheduledEventAttributes": { + "activityId": "4", + "activityType": { + "name": "GreetingActivities::greet" + }, + "taskList": { + "name": "HelloPeriodic" + }, + "input": "IkhlbGxvIFdvcmxkISI=", + "scheduleToCloseTimeoutSeconds": 10, + "scheduleToStartTimeoutSeconds": 10, + "startToCloseTimeoutSeconds": 10, + "heartbeatTimeoutSeconds": 10, + "decisionTaskCompletedEventId": 26, + "header": {} + } + }, + { + "eventId": 28, + "timestamp": 1716329828800396055, + "eventType": "ActivityTaskStarted", + "version": -24, + "taskId": 1048641, + "activityTaskStartedEventAttributes": { + "scheduledEventId": 27, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "3519bd51-002d-47df-86ac-719e73257611", + "lastFailureReason": "" + } + }, + { + "eventId": 29, + "timestamp": 1716329828829353096, + "eventType": "ActivityTaskCompleted", + "version": -24, + "taskId": 1048644, + "activityTaskCompletedEventAttributes": { + "scheduledEventId": 27, + "startedEventId": 28, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 30, + "timestamp": 1716329828829389221, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048646, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "sticky:abhishek-jha-CVW2DD69JF:eedd2819-64c9-44c5-9ba2-cc54b3159e02" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 31, + "timestamp": 1716329828851314971, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048650, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 30, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "59d7af54-218b-46ec-bde9-1e446625b3e5" + } + }, + { + "eventId": 32, + "timestamp": 1716329828889062305, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048653, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 30, + "startedEventId": 31, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 33, + "timestamp": 1716329828889093721, + "eventType": "TimerStarted", + "version": -24, + "taskId": 1048654, + "timerStartedEventAttributes": { + "timerId": "5", + "startToFireTimeoutSeconds": 1, + "decisionTaskCompletedEventId": 32 + } + }, + { + "eventId": 34, + "timestamp": 1716329829903364263, + "eventType": "TimerFired", + "version": -24, + "taskId": 1048657, + "timerFiredEventAttributes": { + "timerId": "5", + "startedEventId": 33 + } + }, + { + "eventId": 35, + "timestamp": 1716329829903486222, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048659, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "sticky:abhishek-jha-CVW2DD69JF:eedd2819-64c9-44c5-9ba2-cc54b3159e02" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 36, + "timestamp": 1716329829936197638, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048663, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 35, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "c8957983-13dc-48ea-be05-165801866964" + } + }, + { + "eventId": 37, + "timestamp": 1716329829968900347, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048666, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 35, + "startedEventId": 36, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 38, + "timestamp": 1716329829968976347, + "eventType": "ActivityTaskScheduled", + "version": -24, + "taskId": 1048667, + "activityTaskScheduledEventAttributes": { + "activityId": "6", + "activityType": { + "name": "GreetingActivities::greet" + }, + "taskList": { + "name": "HelloPeriodic" + }, + "input": "IkhlbGxvIFdvcmxkISI=", + "scheduleToCloseTimeoutSeconds": 10, + "scheduleToStartTimeoutSeconds": 10, + "startToCloseTimeoutSeconds": 10, + "heartbeatTimeoutSeconds": 10, + "decisionTaskCompletedEventId": 37, + "header": {} + } + }, + { + "eventId": 39, + "timestamp": 1716329829969013138, + "eventType": "ActivityTaskStarted", + "version": -24, + "taskId": 1048668, + "activityTaskStartedEventAttributes": { + "scheduledEventId": 38, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "6dcae275-d5b5-41f6-9dba-67613bc83efc", + "lastFailureReason": "" + } + }, + { + "eventId": 40, + "timestamp": 1716329829990545680, + "eventType": "ActivityTaskCompleted", + "version": -24, + "taskId": 1048671, + "activityTaskCompletedEventAttributes": { + "scheduledEventId": 38, + "startedEventId": 39, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 41, + "timestamp": 1716329829990566722, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048673, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "sticky:abhishek-jha-CVW2DD69JF:eedd2819-64c9-44c5-9ba2-cc54b3159e02" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 42, + "timestamp": 1716329830010078013, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048677, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 41, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "fa8371e5-eebd-4151-8a6d-27b2900a1294" + } + }, + { + "eventId": 43, + "timestamp": 1716329830038093680, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048680, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 41, + "startedEventId": 42, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 44, + "timestamp": 1716329830038115472, + "eventType": "TimerStarted", + "version": -24, + "taskId": 1048681, + "timerStartedEventAttributes": { + "timerId": "7", + "startToFireTimeoutSeconds": 1, + "decisionTaskCompletedEventId": 43 + } + }, + { + "eventId": 45, + "timestamp": 1716329831060788333, + "eventType": "TimerFired", + "version": -24, + "taskId": 1048684, + "timerFiredEventAttributes": { + "timerId": "7", + "startedEventId": 44 + } + }, + { + "eventId": 46, + "timestamp": 1716329831060905583, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048686, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "sticky:abhishek-jha-CVW2DD69JF:eedd2819-64c9-44c5-9ba2-cc54b3159e02" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 47, + "timestamp": 1716329831085493625, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048690, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 46, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "eee39640-e633-4149-9fe3-a55a8635a08d" + } + }, + { + "eventId": 48, + "timestamp": 1716329831111431208, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048693, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 46, + "startedEventId": 47, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 49, + "timestamp": 1716329831111510083, + "eventType": "ActivityTaskScheduled", + "version": -24, + "taskId": 1048694, + "activityTaskScheduledEventAttributes": { + "activityId": "8", + "activityType": { + "name": "GreetingActivities::greet" + }, + "taskList": { + "name": "HelloPeriodic" + }, + "input": "IkhlbGxvIFdvcmxkISI=", + "scheduleToCloseTimeoutSeconds": 10, + "scheduleToStartTimeoutSeconds": 10, + "startToCloseTimeoutSeconds": 10, + "heartbeatTimeoutSeconds": 10, + "decisionTaskCompletedEventId": 48, + "header": {} + } + }, + { + "eventId": 50, + "timestamp": 1716329831111534791, + "eventType": "ActivityTaskStarted", + "version": -24, + "taskId": 1048695, + "activityTaskStartedEventAttributes": { + "scheduledEventId": 49, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "baee503a-aaff-4b39-ad86-dde025d5d91b", + "lastFailureReason": "" + } + }, + { + "eventId": 51, + "timestamp": 1716329831130375875, + "eventType": "ActivityTaskCompleted", + "version": -24, + "taskId": 1048698, + "activityTaskCompletedEventAttributes": { + "scheduledEventId": 49, + "startedEventId": 50, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 52, + "timestamp": 1716329831130400041, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048700, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "sticky:abhishek-jha-CVW2DD69JF:eedd2819-64c9-44c5-9ba2-cc54b3159e02" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 53, + "timestamp": 1716329831149396416, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048704, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 52, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "25b7310b-1a8e-42bd-b88b-20c1da318791" + } + }, + { + "eventId": 54, + "timestamp": 1716329831174895416, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048707, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 52, + "startedEventId": 53, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 55, + "timestamp": 1716329831174931875, + "eventType": "TimerStarted", + "version": -24, + "taskId": 1048708, + "timerStartedEventAttributes": { + "timerId": "9", + "startToFireTimeoutSeconds": 1, + "decisionTaskCompletedEventId": 54 + } + }, + { + "eventId": 56, + "timestamp": 1716329832185542125, + "eventType": "TimerFired", + "version": -24, + "taskId": 1048711, + "timerFiredEventAttributes": { + "timerId": "9", + "startedEventId": 55 + } + }, + { + "eventId": 57, + "timestamp": 1716329832185648583, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048713, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "sticky:abhishek-jha-CVW2DD69JF:eedd2819-64c9-44c5-9ba2-cc54b3159e02" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 58, + "timestamp": 1716329832220500334, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048717, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 57, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "662a68cd-6fdd-4fb2-8b6c-d1586bbcefba" + } + }, + { + "eventId": 59, + "timestamp": 1716329832252408834, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048720, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 57, + "startedEventId": 58, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 60, + "timestamp": 1716329832252520167, + "eventType": "ActivityTaskScheduled", + "version": -24, + "taskId": 1048721, + "activityTaskScheduledEventAttributes": { + "activityId": "10", + "activityType": { + "name": "GreetingActivities::greet" + }, + "taskList": { + "name": "HelloPeriodic" + }, + "input": "IkhlbGxvIFdvcmxkISI=", + "scheduleToCloseTimeoutSeconds": 10, + "scheduleToStartTimeoutSeconds": 10, + "startToCloseTimeoutSeconds": 10, + "heartbeatTimeoutSeconds": 10, + "decisionTaskCompletedEventId": 59, + "header": {} + } + }, + { + "eventId": 61, + "timestamp": 1716329832252554500, + "eventType": "ActivityTaskStarted", + "version": -24, + "taskId": 1048722, + "activityTaskStartedEventAttributes": { + "scheduledEventId": 60, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "adf3c79f-fffa-4483-9143-aa91be4c5dd0", + "lastFailureReason": "" + } + }, + { + "eventId": 62, + "timestamp": 1716329832269301250, + "eventType": "ActivityTaskCompleted", + "version": -24, + "taskId": 1048725, + "activityTaskCompletedEventAttributes": { + "scheduledEventId": 60, + "startedEventId": 61, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 63, + "timestamp": 1716329832269315500, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048727, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "sticky:abhishek-jha-CVW2DD69JF:eedd2819-64c9-44c5-9ba2-cc54b3159e02" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 64, + "timestamp": 1716329832287866250, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048731, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 63, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "69239cdc-1651-4e23-822b-50d29cd9ffac" + } + }, + { + "eventId": 65, + "timestamp": 1716329832315269209, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048734, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 63, + "startedEventId": 64, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 66, + "timestamp": 1716329832315302542, + "eventType": "TimerStarted", + "version": -24, + "taskId": 1048735, + "timerStartedEventAttributes": { + "timerId": "11", + "startToFireTimeoutSeconds": 1, + "decisionTaskCompletedEventId": 65 + } + }, + { + "eventId": 67, + "timestamp": 1716329833332344501, + "eventType": "TimerFired", + "version": -24, + "taskId": 1048738, + "timerFiredEventAttributes": { + "timerId": "11", + "startedEventId": 66 + } + }, + { + "eventId": 68, + "timestamp": 1716329833332473959, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048740, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "sticky:abhishek-jha-CVW2DD69JF:eedd2819-64c9-44c5-9ba2-cc54b3159e02" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 69, + "timestamp": 1716329833359346501, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048744, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 68, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "4502b3b7-d9ac-4770-9251-adf0e74cfe44" + } + }, + { + "eventId": 70, + "timestamp": 1716329833394748292, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048747, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 68, + "startedEventId": 69, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 71, + "timestamp": 1716329833394889334, + "eventType": "ActivityTaskScheduled", + "version": -24, + "taskId": 1048748, + "activityTaskScheduledEventAttributes": { + "activityId": "12", + "activityType": { + "name": "GreetingActivities::greet" + }, + "taskList": { + "name": "HelloPeriodic" + }, + "input": "IkhlbGxvIFdvcmxkISI=", + "scheduleToCloseTimeoutSeconds": 10, + "scheduleToStartTimeoutSeconds": 10, + "startToCloseTimeoutSeconds": 10, + "heartbeatTimeoutSeconds": 10, + "decisionTaskCompletedEventId": 70, + "header": {} + } + }, + { + "eventId": 72, + "timestamp": 1716329833394964251, + "eventType": "ActivityTaskStarted", + "version": -24, + "taskId": 1048749, + "activityTaskStartedEventAttributes": { + "scheduledEventId": 71, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "3eb36e4f-ae56-4dbe-8607-5f4b29ac7595", + "lastFailureReason": "" + } + }, + { + "eventId": 73, + "timestamp": 1716329833416504209, + "eventType": "ActivityTaskCompleted", + "version": -24, + "taskId": 1048752, + "activityTaskCompletedEventAttributes": { + "scheduledEventId": 71, + "startedEventId": 72, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 74, + "timestamp": 1716329833416529876, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048754, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "sticky:abhishek-jha-CVW2DD69JF:eedd2819-64c9-44c5-9ba2-cc54b3159e02" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 75, + "timestamp": 1716329833437036542, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048758, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 74, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "725aac1d-a64c-4c14-997d-dde2454264c6" + } + }, + { + "eventId": 76, + "timestamp": 1716329833468904126, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048761, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 74, + "startedEventId": 75, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 77, + "timestamp": 1716329833468935751, + "eventType": "TimerStarted", + "version": -24, + "taskId": 1048762, + "timerStartedEventAttributes": { + "timerId": "13", + "startToFireTimeoutSeconds": 1, + "decisionTaskCompletedEventId": 76 + } + }, + { + "eventId": 78, + "timestamp": 1716329834472636710, + "eventType": "TimerFired", + "version": -24, + "taskId": 1048765, + "timerFiredEventAttributes": { + "timerId": "13", + "startedEventId": 77 + } + }, + { + "eventId": 79, + "timestamp": 1716329834472665876, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048767, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "sticky:abhishek-jha-CVW2DD69JF:eedd2819-64c9-44c5-9ba2-cc54b3159e02" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 80, + "timestamp": 1716329834493497876, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048771, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 79, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "30d9c806-61bb-4745-8468-2369c5956531" + } + }, + { + "eventId": 81, + "timestamp": 1716329834529028210, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048774, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 79, + "startedEventId": 80, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 82, + "timestamp": 1716329834529054626, + "eventType": "ActivityTaskScheduled", + "version": -24, + "taskId": 1048775, + "activityTaskScheduledEventAttributes": { + "activityId": "14", + "activityType": { + "name": "GreetingActivities::greet" + }, + "taskList": { + "name": "HelloPeriodic" + }, + "input": "IkhlbGxvIFdvcmxkISI=", + "scheduleToCloseTimeoutSeconds": 10, + "scheduleToStartTimeoutSeconds": 10, + "startToCloseTimeoutSeconds": 10, + "heartbeatTimeoutSeconds": 10, + "decisionTaskCompletedEventId": 81, + "header": {} + } + }, + { + "eventId": 83, + "timestamp": 1716329834529069376, + "eventType": "ActivityTaskStarted", + "version": -24, + "taskId": 1048776, + "activityTaskStartedEventAttributes": { + "scheduledEventId": 82, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "1fdea034-0abb-4712-ab56-ac5988eb78e2", + "lastFailureReason": "" + } + }, + { + "eventId": 84, + "timestamp": 1716329834544615126, + "eventType": "ActivityTaskCompleted", + "version": -24, + "taskId": 1048779, + "activityTaskCompletedEventAttributes": { + "scheduledEventId": 82, + "startedEventId": 83, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 85, + "timestamp": 1716329834544626168, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048781, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "sticky:abhishek-jha-CVW2DD69JF:eedd2819-64c9-44c5-9ba2-cc54b3159e02" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 86, + "timestamp": 1716329834560854293, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048785, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 85, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "70694439-6cc4-4736-b8cb-b133975605c9" + } + }, + { + "eventId": 87, + "timestamp": 1716329834583830085, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048788, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 85, + "startedEventId": 86, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 88, + "timestamp": 1716329834583846626, + "eventType": "TimerStarted", + "version": -24, + "taskId": 1048789, + "timerStartedEventAttributes": { + "timerId": "15", + "startToFireTimeoutSeconds": 1, + "decisionTaskCompletedEventId": 87 + } + }, + { + "eventId": 89, + "timestamp": 1716329835595364002, + "eventType": "TimerFired", + "version": -24, + "taskId": 1048792, + "timerFiredEventAttributes": { + "timerId": "15", + "startedEventId": 88 + } + }, + { + "eventId": 90, + "timestamp": 1716329835595531960, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048794, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "sticky:abhishek-jha-CVW2DD69JF:eedd2819-64c9-44c5-9ba2-cc54b3159e02" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 91, + "timestamp": 1716329835622954710, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048798, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 90, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "09e91e92-6aea-475c-8485-38a4faa606d4" + } + }, + { + "eventId": 92, + "timestamp": 1716329835654235002, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048801, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 90, + "startedEventId": 91, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 93, + "timestamp": 1716329835654303960, + "eventType": "ActivityTaskScheduled", + "version": -24, + "taskId": 1048802, + "activityTaskScheduledEventAttributes": { + "activityId": "16", + "activityType": { + "name": "GreetingActivities::greet" + }, + "taskList": { + "name": "HelloPeriodic" + }, + "input": "IkhlbGxvIFdvcmxkISI=", + "scheduleToCloseTimeoutSeconds": 10, + "scheduleToStartTimeoutSeconds": 10, + "startToCloseTimeoutSeconds": 10, + "heartbeatTimeoutSeconds": 10, + "decisionTaskCompletedEventId": 92, + "header": {} + } + }, + { + "eventId": 94, + "timestamp": 1716329835654365043, + "eventType": "ActivityTaskStarted", + "version": -24, + "taskId": 1048803, + "activityTaskStartedEventAttributes": { + "scheduledEventId": 93, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "b9e64f1b-9877-4d45-9e2d-ba59586ba837", + "lastFailureReason": "" + } + }, + { + "eventId": 95, + "timestamp": 1716329835672317793, + "eventType": "ActivityTaskCompleted", + "version": -24, + "taskId": 1048806, + "activityTaskCompletedEventAttributes": { + "scheduledEventId": 93, + "startedEventId": 94, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 96, + "timestamp": 1716329835672340585, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048808, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "sticky:abhishek-jha-CVW2DD69JF:eedd2819-64c9-44c5-9ba2-cc54b3159e02" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 97, + "timestamp": 1716329835692800377, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048812, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 96, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "6c86aef8-3e38-45fd-9aa3-6d183b36550e" + } + }, + { + "eventId": 98, + "timestamp": 1716329835733968419, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048815, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 96, + "startedEventId": 97, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 99, + "timestamp": 1716329835734010419, + "eventType": "TimerStarted", + "version": -24, + "taskId": 1048816, + "timerStartedEventAttributes": { + "timerId": "17", + "startToFireTimeoutSeconds": 1, + "decisionTaskCompletedEventId": 98 + } + }, + { + "eventId": 100, + "timestamp": 1716329836742627544, + "eventType": "TimerFired", + "version": -24, + "taskId": 1048819, + "timerFiredEventAttributes": { + "timerId": "17", + "startedEventId": 99 + } + }, + { + "eventId": 101, + "timestamp": 1716329836742729919, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048821, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "sticky:abhishek-jha-CVW2DD69JF:eedd2819-64c9-44c5-9ba2-cc54b3159e02" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 102, + "timestamp": 1716329836774305794, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048825, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 101, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "40bb13b3-206c-4a2e-acf9-976507baa2de" + } + }, + { + "eventId": 103, + "timestamp": 1716329836804699961, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048828, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 101, + "startedEventId": 102, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 104, + "timestamp": 1716329836804767211, + "eventType": "ActivityTaskScheduled", + "version": -24, + "taskId": 1048829, + "activityTaskScheduledEventAttributes": { + "activityId": "18", + "activityType": { + "name": "GreetingActivities::greet" + }, + "taskList": { + "name": "HelloPeriodic" + }, + "input": "IkhlbGxvIFdvcmxkISI=", + "scheduleToCloseTimeoutSeconds": 10, + "scheduleToStartTimeoutSeconds": 10, + "startToCloseTimeoutSeconds": 10, + "heartbeatTimeoutSeconds": 10, + "decisionTaskCompletedEventId": 103, + "header": {} + } + }, + { + "eventId": 105, + "timestamp": 1716329836804801752, + "eventType": "ActivityTaskStarted", + "version": -24, + "taskId": 1048830, + "activityTaskStartedEventAttributes": { + "scheduledEventId": 104, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "9e91d77f-f6a7-4e7d-a0a6-99f0ead4836f", + "lastFailureReason": "" + } + }, + { + "eventId": 106, + "timestamp": 1716329836828341711, + "eventType": "ActivityTaskCompleted", + "version": -24, + "taskId": 1048833, + "activityTaskCompletedEventAttributes": { + "scheduledEventId": 104, + "startedEventId": 105, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 107, + "timestamp": 1716329836828372919, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048835, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "sticky:abhishek-jha-CVW2DD69JF:eedd2819-64c9-44c5-9ba2-cc54b3159e02" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 108, + "timestamp": 1716329836847817086, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048839, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 107, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "ca34c079-99b4-445e-b9a9-a71e4a9832a0" + } + }, + { + "eventId": 109, + "timestamp": 1716329836874096669, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048842, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 107, + "startedEventId": 108, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 110, + "timestamp": 1716329836874130461, + "eventType": "TimerStarted", + "version": -24, + "taskId": 1048843, + "timerStartedEventAttributes": { + "timerId": "19", + "startToFireTimeoutSeconds": 1, + "decisionTaskCompletedEventId": 109 + } + }, + { + "eventId": 111, + "timestamp": 1716329837887564170, + "eventType": "TimerFired", + "version": -24, + "taskId": 1048846, + "timerFiredEventAttributes": { + "timerId": "19", + "startedEventId": 110 + } + }, + { + "eventId": 112, + "timestamp": 1716329837887733378, + "eventType": "DecisionTaskScheduled", + "version": -24, + "taskId": 1048848, + "decisionTaskScheduledEventAttributes": { + "taskList": { + "name": "sticky:abhishek-jha-CVW2DD69JF:eedd2819-64c9-44c5-9ba2-cc54b3159e02" + }, + "startToCloseTimeoutSeconds": 10 + } + }, + { + "eventId": 113, + "timestamp": 1716329837913043378, + "eventType": "DecisionTaskStarted", + "version": -24, + "taskId": 1048852, + "decisionTaskStartedEventAttributes": { + "scheduledEventId": 112, + "identity": "44167@abhishek-jha-CVW2DD69JF", + "requestId": "536fed63-e1b5-4cca-829a-5d0816c4e1e9" + } + }, + { + "eventId": 114, + "timestamp": 1716329837964379628, + "eventType": "DecisionTaskCompleted", + "version": -24, + "taskId": 1048855, + "decisionTaskCompletedEventAttributes": { + "scheduledEventId": 112, + "startedEventId": 113, + "identity": "44167@abhishek-jha-CVW2DD69JF" + } + }, + { + "eventId": 115, + "timestamp": 1716329837965949503, + "eventType": "WorkflowExecutionContinuedAsNew", + "version": -24, + "taskId": 1048856, + "workflowExecutionContinuedAsNewEventAttributes": { + "newExecutionRunId": "30340b74-a014-469e-8387-7ea4248f6886", + "workflowType": { + "name": "GreetingWorkflow::greetPeriodically" + }, + "taskList": { + "name": "HelloPeriodic" + }, + "input": "WyJXb3JsZCIseyJzZWNvbmRzIjoxLCJuYW5vcyI6MH1d", + "executionStartToCloseTimeoutSeconds": 300, + "taskStartToCloseTimeoutSeconds": 10, + "decisionTaskCompletedEventId": 114, + "backoffStartIntervalInSeconds": 0, + "initiator": "Decider", + "failureReason": "", + "header": {}, + "memo": {}, + "searchAttributes": {} + } + } +] \ No newline at end of file From dfda5d74d00d2c5d21c21cad2e1294b086f604bc Mon Sep 17 00:00:00 2001 From: Abhishek Jha Date: Tue, 21 May 2024 15:46:19 -0700 Subject: [PATCH 2/3] Delete docker-compose.yml --- docker-compose.yml | 68 ---------------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index eecb5c95..00000000 --- a/docker-compose.yml +++ /dev/null @@ -1,68 +0,0 @@ -version: '3' -services: - cassandra: - image: cassandra:4.1.1 - ports: - - "9042:9042" - environment: - - "MAX_HEAP_SIZE=256M" - - "HEAP_NEWSIZE=128M" - healthcheck: - test: ["CMD", "cqlsh", "-u cassandra", "-p cassandra" ,"-e describe keyspaces"] - interval: 15s - timeout: 30s - retries: 10 - prometheus: - image: prom/prometheus:latest - volumes: - - ./prometheus:/etc/prometheus - command: - - '--config.file=/etc/prometheus/prometheus.yml' - ports: - - '9090:9090' - node-exporter: - image: prom/node-exporter - ports: - - '9100:9100' - cadence: - image: ubercadence/server:master-auto-setup - ports: - - "8000:8000" - - "8001:8001" - - "8002:8002" - - "8003:8003" - - "7933:7933" - - "7934:7934" - - "7935:7935" - - "7939:7939" - - "7833:7833" - environment: - - "CASSANDRA_SEEDS=cassandra" - - "PROMETHEUS_ENDPOINT_0=0.0.0.0:8000" - - "PROMETHEUS_ENDPOINT_1=0.0.0.0:8001" - - "PROMETHEUS_ENDPOINT_2=0.0.0.0:8002" - - "PROMETHEUS_ENDPOINT_3=0.0.0.0:8003" - - "DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development.yaml" - - "LOG_LEVEL=debug" - depends_on: - cassandra: - condition: service_healthy - prometheus: - condition: service_started - cadence-web: - image: ubercadence/web:latest - environment: - - "CADENCE_TCHANNEL_PEERS=cadence:7933" - ports: - - "8088:8088" - depends_on: - - cadence - grafana: - image: grafana/grafana - volumes: - - ./grafana:/etc/grafana - user: "1000" - depends_on: - - prometheus - ports: - - '3000:3000' From 680fdce272309d70dd90e71d3ce13226a6c6216b Mon Sep 17 00:00:00 2001 From: Abhishek Jha Date: Tue, 21 May 2024 15:47:12 -0700 Subject: [PATCH 3/3] format --- .../cadence/samples/replaytests/HelloActivityReplayTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/uber/cadence/samples/replaytests/HelloActivityReplayTest.java b/src/test/java/com/uber/cadence/samples/replaytests/HelloActivityReplayTest.java index 2cc10b43..beb3e2e2 100644 --- a/src/test/java/com/uber/cadence/samples/replaytests/HelloActivityReplayTest.java +++ b/src/test/java/com/uber/cadence/samples/replaytests/HelloActivityReplayTest.java @@ -31,14 +31,15 @@ // workflowType in the first event of history). public class HelloActivityReplayTest { - //simple replayer test which checks the current workflow execution with the definition: should pass + // simple replayer test which checks the current workflow execution with the definition: should + // pass @Test public void testReplay() throws Exception { WorkflowReplayer.replayWorkflowExecutionFromResource( "replaytests/HelloActivity.json", HelloActivity.GreetingWorkflowImpl.class); } - //continue-as-new case for replayer tests + // continue-as-new case for replayer tests @Test public void testReplay_continueAsNew() throws Exception { WorkflowReplayer.replayWorkflowExecutionFromResource(