Skip to content

Commit 89e48c8

Browse files
satvuggailey777
andauthored
Update articles/azure-functions/performance-reliability.md
Co-authored-by: Glenn Gailey <[email protected]>
1 parent adb00dc commit 89e48c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-functions/performance-reliability.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ Whenever possible, refactor large functions into smaller function sets that work
2222

2323
## Make sure background tasks complete
2424

25-
Azure Functions does not track background threads. If your functions initiate any tasks, callbacks, threads, processes, tasks, etc., they must be complete before you return from your functions. Site shutdown may still occur regardless of background thread status, leading to unintended behavior.
25+
When your function starts any tasks, callbacks, threads, processes, or tasks, they must complete before your function code returns. Because Functions doesn't track these background threads, site shutdown can occur regardless of background thread status, which can cause unintended behavior in your functions.
2626

27-
For example, if a function kicks off a background task and returns a successful response before the task finishes, the function will be considered successful and complete despite the result of the background task. If this background task is performing essential work, it may be pre-empted by site shutdown, leaving that work in an unknown state.
27+
For example, if a function starts a background task and returns a successful response before the task completes, the Functions runtime considers the execution as having completed successfully, regardless of the result of the background task. If this background task is performing essential work, it may be preempted by site shutdown, leaving that work in an unknown state.
2828

2929
## Cross function communication
3030

0 commit comments

Comments
 (0)