# \#async

**URL:** https://community.temporal.io/tag/async/18.md

[Latest](https://community.temporal.io/latest.md) · [Categories](https://community.temporal.io/categories.md) · [Tags](https://community.temporal.io/tags.md)

---

## [Best way to create an async child workflow](https://community.temporal.io/t/best-way-to-create-an-async-child-workflow/114)

<div class="topic-metadata">

**Author:** [@jontro](https://community.temporal.io/u/jontro)\
**Replies:** 27\
**Last updated:** [September 18, 2026, 7:54pm UTC](https://community.temporal.io/t/best-way-to-create-an-async-child-workflow/114 "2026-09-18T19:54:29Z")

</div>

What’s the best way to start a child workflow async? The important thing is to start the workflow, then the child workflow does not need to be associated with the parent workflow any more.

---

## [Modeling human tasks](https://community.temporal.io/t/modeling-human-tasks/18109)

<div class="topic-metadata">

**Author:** [@peperg](https://community.temporal.io/u/peperg)\
**Replies:** 6\
**Last updated:** [August 5, 2025, 4:00pm UTC](https://community.temporal.io/t/modeling-human-tasks/18109 "2025-08-05T16:00:02Z")

</div>

I’ve modelled human approvals (e.g. waiting for 3 approvals) in a very simple way: var result2 = Async.function(activityStub::waitForApproval, "Approval 2"); var result3 = Async.function(activityStub::wa…

---

## [If a workflow waits with workflow.wait(), how to handle workflow task timeout](https://community.temporal.io/t/if-a-workflow-waits-with-workflow-wait-how-to-handle-workflow-task-timeout/16761)

<div class="topic-metadata">

**Author:** [@invisible\_ink](https://community.temporal.io/u/invisible_ink)\
**Replies:** 1\
**Last updated:** [March 16, 2025, 11:08pm UTC](https://community.temporal.io/t/if-a-workflow-waits-with-workflow-wait-how-to-handle-workflow-task-timeout/16761 "2025-03-16T23:08:41Z")

</div>

Hi, I have a workflow with a while loop that makes an API call, batches the results, and then waits (workflow.wait()) for the batch to complete (which takes around 5-15 seconds, possibly longer). However, I’m seeing a “…

---

## [Best practice for background jobs](https://community.temporal.io/t/best-practice-for-background-jobs/14748)

<div class="topic-metadata">

**Author:** [@dannyla](https://community.temporal.io/u/dannyla)\
**Replies:** 2\
**Last updated:** [October 22, 2024, 3:17am UTC](https://community.temporal.io/t/best-practice-for-background-jobs/14748 "2024-10-22T03:17:04Z")

</div>

Hello， I have met some problems while implementing background jobs. My use case: In main workflow, execute sql upsert in Activity1. After that, start a background job in Activity2 (Async background jobs, no need to cu…

---

## [Child Workflow Showing "running" although its completed](https://community.temporal.io/t/child-workflow-showing-running-although-its-completed/13106)

<div class="topic-metadata">

**Author:** [@Veeresh](https://community.temporal.io/u/Veeresh)\
**Replies:** 1\
**Last updated:** [August 8, 2024, 1:56pm UTC](https://community.temporal.io/t/child-workflow-showing-running-although-its-completed/13106 "2024-08-08T13:56:45Z")

</div>

Hi, I have created child activity in java where it runs asynchronous and doesn’t depend on the parent using the parameter “parent\_close\_policy” as abandon but when parent has errors and when I want to reset it, It doesn’…

---

## [Newbie: Temporal says activity decorator is missing, when not missing (activity is async)](https://community.temporal.io/t/newbie-temporal-says-activity-decorator-is-missing-when-not-missing-activity-is-async/12846)

<div class="topic-metadata">

**Author:** [@grahama](https://community.temporal.io/u/grahama)\
**Replies:** 6\
**Last updated:** [July 16, 2024, 7:43pm UTC](https://community.temporal.io/t/newbie-temporal-says-activity-decorator-is-missing-when-not-missing-activity-is-async/12846 "2024-07-16T19:43:36Z")

</div>

Hi I’m trying to get a simple example to work within Temporal. I keep getting the error: TypeError: Activity \<unknown\> missing attributes, was it decorated with @activity.def Can anyone help a Newbie out–I can bribe wi…

---

## [Handling failure/success activities scheduled in parallel on reset/new run](https://community.temporal.io/t/handling-failure-success-activities-scheduled-in-parallel-on-reset-new-run/12015)

<div class="topic-metadata">

**Author:** [@Rajendra\_Prasad\_G](https://community.temporal.io/u/Rajendra_Prasad_G)\
**Replies:** 8\
**Last updated:** [May 22, 2024, 6:03pm UTC](https://community.temporal.io/t/handling-failure-success-activities-scheduled-in-parallel-on-reset-new-run/12015 "2024-05-22T18:03:56Z")

</div>

We have a scenario where in 2 of the activities are executed in parallel, in which one of them is failed. On a reset, how can we make sure that, the successfully completed activity is not re-triggered? For example, my e…

---

## [Async Activity - Not invoking in parallel](https://community.temporal.io/t/async-activity-not-invoking-in-parallel/11690)

<div class="topic-metadata">

**Author:** [@mramesh](https://community.temporal.io/u/mramesh)\
**Replies:** 7\
**Last updated:** [May 1, 2024, 4:47am UTC](https://community.temporal.io/t/async-activity-not-invoking-in-parallel/11690 "2024-05-01T04:47:30Z")

</div>

Looking for some guidance on how we invoke several activities in parallel. I followed the HelloParallelAcitivity.java but i do see from the timestamp in the logs they are not calling in parallel 2024-04-09T14:40:53.614-…

---

## [Concurrent Execution of Workflow and Activities in One Worker Instance](https://community.temporal.io/t/concurrent-execution-of-workflow-and-activities-in-one-worker-instance/11306)

<div class="topic-metadata">

**Author:** [@Sriram\_Manikanth](https://community.temporal.io/u/Sriram_Manikanth)\
**Replies:** 7\
**Last updated:** [March 18, 2024, 4:45pm UTC](https://community.temporal.io/t/concurrent-execution-of-workflow-and-activities-in-one-worker-instance/11306 "2024-03-18T16:45:34Z")

</div>

Hello Temporal Community, I hope this message finds you well. I’m currently working on Temporal Implementation for managing workflows execution. I’ve encountered a challenge and would greatly appreciate your insights an…

---

## [Trigger workflow with concurrent activities using ThreadPoolExecutor](https://community.temporal.io/t/trigger-workflow-with-concurrent-activities-using-threadpoolexecutor/10751)

<div class="topic-metadata">

**Author:** [@Juser](https://community.temporal.io/u/Juser)\
**Replies:** 4\
**Last updated:** [January 23, 2024, 6:49pm UTC](https://community.temporal.io/t/trigger-workflow-with-concurrent-activities-using-threadpoolexecutor/10751 "2024-01-23T18:49:21Z")

</div>

If I have 10 activities inside 1 workflow where I want to run some activity concurrently and some are not, all are synchronous and I put threadPoolExecutor(5) on worker. Now if I trigger 10 workflows then each workflow …

---

## [Executing asynchronous child workflow and retrieving result later](https://community.temporal.io/t/executing-asynchronous-child-workflow-and-retrieving-result-later/9065)

<div class="topic-metadata">

**Author:** [@lss](https://community.temporal.io/u/lss)\
**Replies:** 2\
**Last updated:** [August 3, 2023, 4:30pm UTC](https://community.temporal.io/t/executing-asynchronous-child-workflow-and-retrieving-result-later/9065 "2023-08-03T16:30:06Z")

</div>

Hi team. I have a use case as follows: User makes a request to our service, and the requests takes a while (10-15 minutes), so we want to just return a response (like a “created” response or something to let the user kno…

---

## [Is there a way to call query/signal in async/non-blocking way using Java sdk?](https://community.temporal.io/t/is-there-a-way-to-call-query-signal-in-async-non-blocking-way-using-java-sdk/8054)

<div class="topic-metadata">

**Author:** [@Dhanraj](https://community.temporal.io/u/Dhanraj)\
**Replies:** 4\
**Last updated:** [May 1, 2023, 4:32pm UTC](https://community.temporal.io/t/is-there-a-way-to-call-query-signal-in-async-non-blocking-way-using-java-sdk/8054 "2023-05-01T16:32:20Z")

</div>

Hi, I am aware that we can start new workflow in async fashion using WorkflowClient.start() method. Do we have similar mechanism for query/signal method? We have couple of reactive application which prefer these operat…

---

## [Exploring Temporal orchestration with async lambdas](https://community.temporal.io/t/exploring-temporal-orchestration-with-async-lambdas/6461)

<div class="topic-metadata">

**Author:** [@linusgsanz](https://community.temporal.io/u/linusgsanz)\
**Replies:** 5\
**Last updated:** [November 18, 2022, 10:08pm UTC](https://community.temporal.io/t/exploring-temporal-orchestration-with-async-lambdas/6461 "2022-11-18T22:08:55Z")

</div>

The company I work with is exploring switching some of our processes to be more Workflow dependent. Currently we use choreography and event driven design to analyze our data (provided by clients). The analysis code ru…

---

## [Alternatives: Verify Workflow status before calling Workflow.getResult](https://community.temporal.io/t/alternatives-verify-workflow-status-before-calling-workflow-getresult/5460)

<div class="topic-metadata">

**Author:** [@Kani](https://community.temporal.io/u/Kani)\
**Replies:** 4\
**Last updated:** [August 19, 2022, 7:39pm UTC](https://community.temporal.io/t/alternatives-verify-workflow-status-before-calling-workflow-getresult/5460 "2022-08-19T19:39:48Z")

</div>

I have a flow where the client initiate a new workflow but it doesn’t wait for the result in-line. Instead it will do some other stuff and come back later. For example: WorkflowClient workflowClient = ...; WorkflowOptio…

---

## [Signals and asynchronous activity completion use cases](https://community.temporal.io/t/signals-and-asynchronous-activity-completion-use-cases/4612)

<div class="topic-metadata">

**Author:** [@nitesh237](https://community.temporal.io/u/nitesh237)\
**Replies:** 5\
**Last updated:** [May 17, 2022, 1:55pm UTC](https://community.temporal.io/t/signals-and-asynchronous-activity-completion-use-cases/4612 "2022-05-17T13:55:58Z")

</div>

Hi Team, Apologies for raising this topic again but the guidelines as to where to use Signal vs Async Activity completion were not very clear. I have tried reading the following thread comments. IIUC I don’t see any…

---

## [Async trigger for parallel activities](https://community.temporal.io/t/async-trigger-for-parallel-activities/4205)

<div class="topic-metadata">

**Author:** [@Newbie\_Sr](https://community.temporal.io/u/Newbie_Sr)\
**Replies:** 9\
**Last updated:** [March 21, 2022, 4:48pm UTC](https://community.temporal.io/t/async-trigger-for-parallel-activities/4205 "2022-03-21T16:48:38Z")

</div>

Hi, I have several async parallel activities which wait for some external signals to complete the activities the implementation is like below. I understand that I can call CompleteActivity once receiving the signal. But…

---

## [Verifying error handling and fixing buggy code within Async::procedure promises](https://community.temporal.io/t/verifying-error-handling-and-fixing-buggy-code-within-async-procedure-promises/3391)

<div class="topic-metadata">

**Author:** [@nathan\_shields](https://community.temporal.io/u/nathan_shields)\
**Replies:** 12\
**Last updated:** [December 2, 2021, 10:16pm UTC](https://community.temporal.io/t/verifying-error-handling-and-fixing-buggy-code-within-async-procedure-promises/3391 "2021-12-02T22:16:47Z")

</div>

Context: I have a batch processing workflow that uses Async::procedure to execute a series of activities and non-activity methods against each item in the batch. I want to write a test that confirms my error handling is …

---

## [Triggering Synchronous and Asynchronous Workflows from a workflow](https://community.temporal.io/t/triggering-synchronous-and-asynchronous-workflows-from-a-workflow/1659)

<div class="topic-metadata">

**Author:** [@cg1972](https://community.temporal.io/u/cg1972)\
**Replies:** 27\
**Last updated:** [September 3, 2021, 5:26pm UTC](https://community.temporal.io/t/triggering-synchronous-and-asynchronous-workflows-from-a-workflow/1659 "2021-09-03T17:26:24Z")

</div>

I have a use case where I am using temporal to replace an existing ingest process. There is a requirement where requests that come through for the same ingest id, must be run in the order that they arrive. To implement…

---

## [Handling exceptions thrown in Promises](https://community.temporal.io/t/handling-exceptions-thrown-in-promises/2756)

<div class="topic-metadata">

**Author:** [@nathan\_shields](https://community.temporal.io/u/nathan_shields)\
**Replies:** 8\
**Last updated:** [August 21, 2021, 4:14pm UTC](https://community.temporal.io/t/handling-exceptions-thrown-in-promises/2756 "2021-08-21T16:14:54Z")

</div>

Extending the question in this post Async activities in workflow - #2 by maxim, I am working on what to do in the catch block to get my intended behavior: Never fail or retry the whole workflow. All of the promises sho…

---

## [Waiting for all async child workflows to complete, when triggered from an activity](https://community.temporal.io/t/waiting-for-all-async-child-workflows-to-complete-when-triggered-from-an-activity/2401)

<div class="topic-metadata">

**Author:** [@jeremyw](https://community.temporal.io/u/jeremyw)\
**Replies:** 5\
**Last updated:** [June 17, 2021, 4:49pm UTC](https://community.temporal.io/t/waiting-for-all-async-child-workflows-to-complete-when-triggered-from-an-activity/2401 "2021-06-17T16:49:16Z")

</div>

Hi, Would there be a way for an activity to trigger multiple async child workflows and also allow the parent workflow to wait for all these child workflows to complete? I know that if I trigger the child workflows dire…

---

## [How do we get the first completed Async Activity?](https://community.temporal.io/t/how-do-we-get-the-first-completed-async-activity/2318)

<div class="topic-metadata">

**Author:** [@Steven\_Sun](https://community.temporal.io/u/Steven_Sun)\
**Replies:** 3\
**Last updated:** [June 7, 2021, 10:47pm UTC](https://community.temporal.io/t/how-do-we-get-the-first-completed-async-activity/2318 "2021-06-07T22:47:20Z")

</div>

I couldn’t find an example online but it seems like when we call multiple async activities there is no elegant way of knowing which one has completed first.In a normal case I would use Java CompletionService which gives …

---

## [Temporal and non-blocking JVM code](https://community.temporal.io/t/temporal-and-non-blocking-jvm-code/1240)

<div class="topic-metadata">

**Author:** [@GreyTeardrop](https://community.temporal.io/u/GreyTeardrop)\
**Replies:** 6\
**Last updated:** [December 26, 2020, 9:51pm UTC](https://community.temporal.io/t/temporal-and-non-blocking-jvm-code/1240 "2020-12-26T21:51:05Z")

</div>

Hi Temporal team! Temporal seems to perfectly match some of the use cases my team has and we’re looking forward to trying it in one of our projects. I have some questions I’d like to clarify before we dive in. Our back…

---

## [Wrokflow.await behavior](https://community.temporal.io/t/wrokflow-await-behavior/509)

<div class="topic-metadata">

**Author:** [@shawel\_negussie](https://community.temporal.io/u/shawel_negussie)\
**Replies:** 2\
**Last updated:** [August 21, 2020, 8:49pm UTC](https://community.temporal.io/t/wrokflow-await-behavior/509 "2020-08-21T20:49:28Z")

</div>

Does something like this work? My test is not successful Workflow.await { startTime \<= Instant.now() } and release if start time is after the current date. If not how do we go about waiting until start time is met? T…

---

## [Activity reverts from state "Started" to "Scheduled" after 1 hour](https://community.temporal.io/t/activity-reverts-from-state-started-to-scheduled-after-1-hour/418)

<div class="topic-metadata">

**Author:** [@suejungshin](https://community.temporal.io/u/suejungshin)\
**Replies:** 6\
**Last updated:** [August 13, 2020, 5:46pm UTC](https://community.temporal.io/t/activity-reverts-from-state-started-to-scheduled-after-1-hour/418 "2020-08-13T17:46:36Z")

</div>

Hello, I have a workflow that reaches an activity that requires human input to complete the activity (similar to the Go-SDK expense asynchronous activity completion example). The activity (called “ManualTaskActivity”) …
