io.grpc.StatusRuntimeException: INVALID_ARGUMENT: A valid StartToClose or ScheduleToCloseTimeout is not set on workflow task.
at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:271) ~[grpc-stub-1.54.1.jar:1.54.1]
at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:252) ~[grpc-stub-1.54.1.jar:1.54.1]
at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:165) ~[grpc-stub-1.54.1.jar:1.54.1]
at io.temporal.api.workflowservice.v1.WorkflowServiceGrpc$WorkflowServiceBlockingStub.respondWorkflowTaskCompleted(WorkflowServiceGrpc.java:3924) ~[temporal-serviceclient-1.23.1.jar:?]
at io.temporal.internal.worker.WorkflowWorker$TaskHandlerImpl.lambda$sendTaskCompleted$0(WorkflowWorker.java:483) ~[temporal-sdk-1.23.1.jar:?]
at io.temporal.internal.retryer.GrpcSyncRetryer.retry(GrpcSyncRetryer.java:69) ~[temporal-serviceclient-1.23.1.jar:?]
at io.temporal.internal.retryer.GrpcRetryer.retryWithResult(GrpcRetryer.java:60) ~[temporal-serviceclient-1.23.1.jar:?]
at io.temporal.internal.worker.WorkflowWorker$TaskHandlerImpl.sendTaskCompleted(WorkflowWorker.java:478) ~[temporal-sdk-1.23.1.jar:?]
at io.temporal.internal.worker.WorkflowWorker$TaskHandlerImpl.handle(WorkflowWorker.java:350) ~[temporal-sdk-1.23.1.jar:?]
at io.temporal.internal.worker.WorkflowWorker$TaskHandlerImpl.handle(WorkflowWorker.java:278) ~[temporal-sdk-1.23.1.jar:?]
at io.temporal.internal.worker.PollTaskExecutor.lambda$process$0(PollTaskExecutor.java:105) ~[temporal-sdk-1.23.1.jar:?]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.base/java.lang.Thread.run(Thread.java:840) [?:?]
2024-06-28 10:05:49,787 21079 [Workflow Executor taskQueue=“WorkflowTest-Test Replace Artefact WorkFlow Successful Scenario-[engine:junit-jupiter]/[class:in.zeta.aether.harmonix.workflow.impl.ReplaceArtefactWorkFlowImplTest]/[method:replaceArtefactWorkFlowImpl_Success(io.temporal.testing.TestWorkflowEnvironment, io.temporal.worker.Worker, in.zeta.aether.harmonix.workflow.ReplaceArtefactWorkFlow)]”, namespace=“UnitTest”: 1] WARN [i.t.i.w.WorkflowWorker] {Namespace=UnitTest, RunId=23c6d78c-8ef7-4e40-bd62-9b8236c1622c, TaskQueue=WorkflowTest-Test Replace Artefact WorkFlow Successful Scenario-[engine:junit-jupiter]/[class:in.zeta.aether.harmonix.workflow.impl.ReplaceArtefactWorkFlowImplTest]/[method:replaceArtefactWorkFlowImpl_Success(io.temporal.testing.TestWorkflowEnvironment, io.temporal.worker.Worker, in.zeta.aether.harmonix.workflow.ReplaceArtefactWorkFlow)], WorkflowId=4b43d2e0-d0a6-48d2-983b-9ba3601aa118, WorkflowType=ReplaceArtefactWorkFlow, appResourceId=abhinav.ve@dev, clusterName=default, container=unknown-container, deployment=unknown-deployment, node=unknown-node, pod=dev, service=unknown-service} - Failure while reporting workflow progress to the server. If seen continuously the workflow might be stuck. WorkflowId=4b43d2e0-d0a6-48d2-983b-9ba3601aa118, RunId=23c6d78c-8ef7-4e40-bd62-9b8236c1622c, startedEventId=3 io.grpc.StatusRuntimeException: INVALID_ARGUMENT: A valid StartToClose or ScheduleToCloseTimeout is not set on workflow task.
at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:271)
at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:252)
at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:165)
at io.temporal.api.workflowservice.v1.WorkflowServiceGrpc$WorkflowServiceBlockingStub.respondWorkflowTaskCompleted(WorkflowServiceGrpc.java:3924)
at io.temporal.internal.worker.WorkflowWorker$TaskHandlerImpl.lambda$sendTaskCompleted$0(WorkflowWorker.java:483)
at io.temporal.internal.retryer.GrpcSyncRetryer.retry(GrpcSyncRetryer.java:69)
at io.temporal.internal.retryer.GrpcRetryer.retryWithResult(GrpcRetryer.java:60)
at io.temporal.internal.worker.WorkflowWorker$TaskHandlerImpl.sendTaskCompleted(WorkflowWorker.java:478)
at io.temporal.internal.worker.WorkflowWorker$TaskHandlerImpl.handle(WorkflowWorker.java:350)
at io.temporal.internal.worker.WorkflowWorker$TaskHandlerImpl.handle(WorkflowWorker.java:278)
at io.temporal.internal.worker.PollTaskExecutor.lambda$process$0(PollTaskExecutor.java:105)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
Receiving above Error while writing Unit Test for my workflow.