agent-substrate / agent-substrate/substrate

Support async workflows in ate-api

Ouverte
#1,227 1 commentaire 1 réaction 0 personnes assignées Voir sur GitHub
area/api area/api-machinery kind/feature
Langage dominant
Go
Étoiles
1.8k
Forks
316
Merge moyen
2 j 43 min
PR mergées (30 j)
287

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.