# Not able to retry the previous activity if gets false acknowledement

**URL:** <https://community.temporal.io/t/not-able-to-retry-the-previous-activity-if-gets-false-acknowledement/17536>\
**Category:** Community Support\
**Tags:** java-sdk, temporal-cloud\
**Created:** [May 28, 2025, 6:55am UTC](https://community.temporal.io/t/not-able-to-retry-the-previous-activity-if-gets-false-acknowledement/17536 "2025-05-28T06:55:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sachin\_KUMAR\_AWSINDI](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/sachin_kumar_awsindi/32/6906_2.png) [@Sachin\_KUMAR\_AWSINDI](https://community.temporal.io/u/Sachin_KUMAR_AWSINDI)\
**Post date:** [May 28, 2025, 6:55am UTC](https://community.temporal.io/t/not-able-to-retry-the-previous-activity-if-gets-false-acknowledement/17536/1 "2025-05-28T06:55:53Z")

</div>

Hi @maxim @temporal_angie ,

I have a forward order temporal workflow which have an activity which publishes message to kafka topic to order service and then order service will call API for that activity and then sends back the ac knowledgement , If the ack is for sucess then continues and if ack is false then again we have to do the same activity to publish message to kafka . How to acheive this??

---

<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:** [May 28, 2025, 2:39pm UTC](https://community.temporal.io/t/not-able-to-retry-the-previous-activity-if-gets-false-acknowledement/17536/2 "2025-05-28T14:39:32Z")

</div>

What is the maximum duration of such async request/reply?

---

<div class="post-metadata">

**Author:** ![Sachin\_KUMAR\_AWSINDI](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/sachin_kumar_awsindi/32/6906_2.png) [@Sachin\_KUMAR\_AWSINDI](https://community.temporal.io/u/Sachin_KUMAR_AWSINDI)\
**Post date:** [May 28, 2025, 5:20pm UTC](https://community.temporal.io/t/not-able-to-retry-the-previous-activity-if-gets-false-acknowledement/17536/3 "2025-05-28T17:20:37Z")

</div>

Approx 30 seconds to 1 minute

---

<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:** [May 28, 2025, 5:26pm UTC](https://community.temporal.io/t/not-able-to-retry-the-previous-activity-if-gets-false-acknowledement/17536/4 "2025-05-28T17:26:23Z")

</div>

Then you can use [ManualActivityCompletion](https://docs.temporal.io/develop/java/asynchronous-activity-completion) and use the standard activity retries.

---

<div class="post-metadata">

**Author:** ![Sachin\_KUMAR\_AWSINDI](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/sachin_kumar_awsindi/32/6906_2.png) [@Sachin\_KUMAR\_AWSINDI](https://community.temporal.io/u/Sachin_KUMAR_AWSINDI)\
**Post date:** [June 10, 2025, 6:54am UTC](https://community.temporal.io/t/not-able-to-retry-the-previous-activity-if-gets-false-acknowledement/17536/5 "2025-06-10T06:54:28Z")

</div>

@maxim will the task token be unique for every activity and every workflows running in the temporal??

Where we can store taskToken so that it can be used in other class??

---

<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:** [June 10, 2025, 2:59pm UTC](https://community.temporal.io/t/not-able-to-retry-the-previous-activity-if-gets-false-acknowledement/17536/6 "2025-06-10T14:59:26Z")

</div>

Can you include it into the message that is pushed to Kafka and then include it into the reply?
