agent-substrate / agent-substrate/substrate

Support async workflows in ate-api

未关闭
#1,227 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
area/api area/api-machinery kind/feature
主要语言
Go
星标
1.8k
派生
316
平均合并
2 天 43 分钟
30 天内合并 PR
287

描述

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).

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。