agent-substrate / agent-substrate/substrate
Support async workflows in ate-api
- Ngôn ngữ chính
- Go
- Star
- 1.8k
- Fork
- 316
- Merge trung bình
- 2 ngày 43 phút
- Pull request đã merge (30 ngày)
- 287
Mô tả
Currently all workflows / APIs are synchronous, and any failures require the client to retry.
For certain operations (eg. DeleteWorker) there are dependent operations (eg. unassign actor) which will fail the operation if any of the steps are unsuccessful. We should support async workflows where a client can call the API and the operation will run in the background, with exponential error backoff. Then if clients want, they can fire and forget and assume the operation will complete eventually, instead of managing the retries manually.
We should consider what the UX is for these async APIs. How will errors, or API status be returned? We likely need some way for clients to poll the status (eg. Like LROs in GCP).
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.