Skip to content

Commit 9cf9447

Browse files
author
Sim Pi Agent
committed
Pi Babysit: address PR #8847 feedback
1 parent ed7b8ec commit 9cf9447

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • apps/sim/content/library/ai-agents-asana-monday-task-automation

‎apps/sim/content/library/ai-agents-asana-monday-task-automation/index.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ Semantic similarity alone should not authorize an update. Two tasks can describe
142142

143143
An Asana task agent should prevent duplicates with idempotency keys, exact identifier matching, constrained searches, and a record of completed writes.
144144

145-
A practical idempotency key can combine the source system, immutable request ID, and intended operation. Before creating a task, the workflow checks whether that key has already produced an Asana task. If it has, the workflow returns the existing result rather than repeating the write.
145+
A practical idempotency key can combine the source system, immutable request ID, and intended operation. Before creating a task, the workflow should reserve that key in a durable store with one indivisible operation, allowing only the run that created the reservation to proceed. If the key already has a completed Asana task, the workflow returns the existing result rather than repeating the write.
146146

147-
Duplicate prevention should also cover retries. Network timeouts can occur after Asana accepts a request but before the workflow receives the response, so blindly retrying a create operation can produce two tasks. The workflow should search for the idempotency key before retrying.
147+
Duplicate prevention should also cover retries. The original task creation should store the request key in a searchable Asana field because a network timeout can occur after Asana accepts the request but before the workflow records the response locally. After a timeout, the workflow should search Asana for that key and route an uncertain result for human review rather than blindly issuing another create operation.
148148

149149
## When should a person approve an Asana task change?
150150

0 commit comments

Comments
 (0)