# Seeing Activity Task Started After WorkflowExecutionCompleted?

**URL:** https://community.temporal.io/t/seeing-activity-task-started-after-workflowexecutioncompleted/2614
**Category:** Community Support
**Tags:** java-sdk
**Created:** [July 24, 2021, 7:57am UTC](https://community.temporal.io/t/seeing-activity-task-started-after-workflowexecutioncompleted/2614 "2021-07-24T07:57:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![darewreck](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@darewreck](https://community.temporal.io/u/darewreck)
#### Post date: [July 24, 2021, 7:57am UTC](https://community.temporal.io/t/seeing-activity-task-started-after-workflowexecutioncompleted/2614/1 "2021-07-24T07:57:58Z")

</div>

Hi,

I’m noticing something strange. When the `WorkflowExecutionComplete` is completed, I see a ActivityTaskStarted after it. I was under the impression that once the workflow execution is complete that is the last thing that can happen. It’s strange to see an `ActivityTaskStarted` to be appear on the history.

In my code, there is the ability to try to signal the workflow to cancel an activity, but by this time the workflowExceution should be completed. I figured that the signaled request would be dropped and not tracked

 ![image](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/1/1bdd741155c7d466c4a16771d86927ecc59ddd12.jpeg)

---

<div class="post-metadata">

### Author: ![Ruslan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/ruslan/32/66_2.png) [@Ruslan](https://community.temporal.io/u/Ruslan)
#### Post date: [July 24, 2021, 5:16pm UTC](https://community.temporal.io/t/seeing-activity-task-started-after-workflowexecutioncompleted/2614/2 "2021-07-24T17:16:03Z")

</div>

Thanks for reporting, seems like a bug  
Will check this

---

<div class="post-metadata">

### Author: ![darewreck](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@darewreck](https://community.temporal.io/u/darewreck)
#### Post date: [July 24, 2021, 6:29pm UTC](https://community.temporal.io/t/seeing-activity-task-started-after-workflowexecutioncompleted/2614/3 "2021-07-24T18:29:15Z")

</div>

@Ruslan On the same note I do see the following in my logs. I’m trying to figure out where this exception gets thrown. Is it some background process in the SDK that is still trying to start the Activity?

```auto
"io.grpc.StatusRuntimeException: NOT_FOUND: workflow execution already completed
	at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:262)
	at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:243)
	at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:156)
	at io.temporal.api.workflowservice.v1.WorkflowServiceGrpc$WorkflowServiceBlockingStub.respondActivityTaskFailed(WorkflowServiceGrpc.java:2757)
	at io.temporal.internal.worker.ActivityWorker$TaskHandlerImpl.lambda$sendReply$1(ActivityWorker.java:305)
	at io.temporal.internal.common.GrpcRetryer.lambda$retry$0(GrpcRetryer.java:79)
	at io.temporal.internal.common.GrpcRetryer.retryWithResult(GrpcRetryer.java:97)
	at io.temporal.internal.common.GrpcRetryer.retry(GrpcRetryer.java:76)
	at io.temporal.internal.worker.ActivityWorker$TaskHandlerImpl.sendReply(ActivityWorker.java:299)
	at io.temporal.internal.worker.ActivityWorker$TaskHandlerImpl.handle(ActivityWorker.java:196)
	at io.temporal.internal.worker.ActivityWorker$TaskHandlerImpl.handle(ActivityWorker.java:154)
	at io.temporal.internal.worker.PollTaskExecutor.lambda$process$0(PollTaskExecutor.java:73)
	... 3 common frames omitted
Wrapped by: java.lang.RuntimeException: Failure processing activity response. WorkflowId=6887dc26-f4d2-442f-aad3-628b2fbb30b4, RunId=2958f530-25f6-4162-bb5c-cbeb0576fafe, ActivityType=ReleaserActivityStart, ActivityId=8a9528ac-ccc1-309e-8cd1-19a6e0a30a1c
	at io.temporal.internal.worker.ActivityWorker$TaskHandlerImpl.wrapFailure(ActivityWorker.java:259)
	at io.temporal.internal.worker.ActivityWorker$TaskHandlerImpl.wrapFailure(ActivityWorker.java:154)
	at io.temporal.internal.worker.PollTaskExecutor.lambda$process$0(PollTaskExecutor.java:79)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
"

```

---

<div class="post-metadata">

### Author: ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)
#### Post date: [July 24, 2021, 6:35pm UTC](https://community.temporal.io/t/seeing-activity-task-started-after-workflowexecutioncompleted/2614/4 "2021-07-24T18:35:21Z")

</div>

This happens when activity tries to report its completion after the workflow execution already completed.
