Skip to content

Implementation for the worker API - #1121

Open
sfunkenhauser wants to merge 1 commit into
agent-substrate:mainfrom
sfunkenhauser:worker_api_impl
Open

Implementation for the worker API#1121
sfunkenhauser wants to merge 1 commit into
agent-substrate:mainfrom
sfunkenhauser:worker_api_impl

Conversation

@sfunkenhauser

Copy link
Copy Markdown
Collaborator

Fixes #730

  • [ x ] Tests pass
  • [ x ] Appropriate changes to documentation are included in the PR

@sfunkenhauser
sfunkenhauser marked this pull request as ready for review August 21, 2026 17:51
return errs
}

func (s *Service) DrainWorker(ctx context.Context, req *ateapipb.DrainWorkerRequest) (*ateapipb.Worker, error) {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now DrainWorker has unnecessary preconditions, as these are required at the storage layer. I'm not sure this PR needs to be blocked by this, but we should discuss if the storage layer is the correct place to enforce preconditions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create a CRUD API for Workers

1 participant