agent-substrate / agent-substrate/substrate

Support async workflows in ate-api

Open
#1,227 1 comment 1 reaction 0 assignees View on GitHub
area/api area/api-machinery kind/feature
Dominant language
Go
Stars
1.8k
Forks
316
Avg merge
2d 43m
Merged PRs (30d)
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).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.